Hacker News new | ask | show | jobs
Nobody Expects the Spanish Inquisition, or INT_MIN to be Divided by -1 (blog.regehr.org)
10 points by malloc47 4884 days ago
1 comments

Call me dense, but why on Earth would this raise a Floating-Point exception in any compiler? That seems wildly misleading considering there are no FP operation going on, the integer division is supposed to stay in the integer domain - or return an integer NaN, which I'll admit is a rarity. Am I missing something?