would using casts fix the problem?
Posted Apr 16, 2008 20:27 UTC (Wed) by
jengelh (subscriber, #33263)
In reply to:
would using casts fix the problem? by MathFox
Parent article:
GCC and pointer overflows
Or better yet don't cast at all. %td for printf can take a ptrdiff_t, which is what such a subtraction should usually yield.
(
Log in to post comments)