Or from porting software to 64 bits and debugging errors due to 'long' doubling its size.
-
-
-
One legacy codebase had extern prototypes missing in some places. Pointers getting sign-extended are quite a sign, I should say
- 8 more replies
New conversation -
-
-
Great! I'll carve out some time as well, would really like to see these things wrapped up and made available to everyone! :D
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This is one of the reasons I sort of fell in love with Pony.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
lol, all you do is bash C. I mean, I agree with you; I just need to grab some popcorn before reading your feed.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Yep! Added -fsanitize={implicit,explicit}-integer-conversion. Happy to share if nothing else--
@johnregehr do you rem where we left w/these?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
in c++: bool add(int a, int b) { return a + b; } g++ does not issue a warning, even with `-Wall`
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
It puzzles me why that hill-climb was never really taken, even as an optional strict compiler setting.
-
a few times I have wrapped values in structs specifically to prevent implicit conversions (mostly special types). works pretty ok at least.
End of conversation
New conversation -
-
-
Or from second guessing yourself when you think you are about to introduce such an error cause now you see them everywhere!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.