5323 shaares
127 private links
127 private links
When something very basic goes wrong, I have this hierarchy of potential culprits:
- the compiler
- buggy hardware
- OS vendor
- last and least me, because I don’t make mistakes :)
So what doesn’t work ? I am doing a simple cast from a floating point value to an integer value in C. This happens in a routine, that checks, if a double is integral and if it would fit into a long.