🎼 On the first day of Christmas, my debugger gave to me: a stack trace of SIGFPE 🎶

So anyway it turns out it's one of those historically misnamed things and I indeed didn't have mystery floating point math lurking in my integer snow code; it was a modulo operator getting a zero denominator due to unsigned overflow from a breezeline getting too old without being reset, which is random.

Wonder if new-age C++ will ever add saturating arithmetic to the core language.

Follow

Ah, because I am an arrogant fool using a chainsaw, I also casually had an operator[] kicking around rather than a nice safe at(), and there was *also* a sneaky out-of-bounds read that was pulling zeroes (and other forbidden numbers) from breezlines beyond the veil of defined reality.

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
✨Plush✨City 🏙

This is a space for soft friends and friends of soft friends to gather together!

In this city we're all about soff frens and compassion and caring about each other!

Code of Conduct in a Nutshell

Discrimination & Bigotry Won’t Be Tolerated.

Leave your hatred at the door.

Treat this Space and Those Within it with Respect.

Listen actively to and honor the requests of others; always respond with compassion first.

Consent is Important in all contexts.

If you’re ever unsure, ask first. Use CWs where required.

Listen; Don’t Make Excuses.

If you’re accused of causing harm, either take some responsibility or ask moderators for help.

Don’t Break the Law Here.

The whole space may be liable if you do.

Use the Report Feature.

All reports go straight to our moderation team. We’re here to help!

For more detail, please
Review our Full Code of Conduct