TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Nobody Expects the Spanish Inquisition, or INT_MIN to be Divided by -1

10 pointsby malloc47over 12 years ago

1 comment

millercover 12 years ago
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?