Revision r3716
👤 helixhorned
📅 2013-04-29 12:24:15 -0700 (Mon, 29 Apr 2013)
Fix debugging builds with Clang 3.2 and up.
In those Clang versions, -fcatch-undefined-behavior was replaced by
-fsanitize=<what>. For Clang 3.2, we enable the address sanitizer
and for 3.3 also the miscellaneous undefined behavior one.
Currently, there's no version auto-detection from the Makefiles, it's
set to 3.3 and the others are commented out.
Revision r3715
👤 helixhorned
📅 2013-04-29 12:24:12 -0700 (Mon, 29 Apr 2013)
Generalize ZRANGE and ANGRANGE to accept any nonnegative number.
Numbers 0 and 1 mean 'no spread', but the latter does one krand() call.
Negative numbers are reserved for potential future use.
------------------------------------------------------------------------
Raw Content
------------------------------------------------------------------------
r3717 | helixhorned | 2013-04-29 12:24:19 -0700 (Mon, 29 Apr 2013) | 6 lines
Fix two bugs found by Clang's undefined behavior sanitizer.
- Return early from drawsprite_classic() if tspr->owner if oob.
Commonize that check between renderers into bad_tspr().
- Make the BIT() macro a left-shift of the *unsigned* number 1,
preventing expansion to (1<<31).
------------------------------------------------------------------------
r3716 | helixhorned | 2013-04-29 12:24:15 -0700 (Mon, 29 Apr 2013) | 7 lines
Fix debugging builds with Clang 3.2 and up.
In those Clang versions, -fcatch-undefined-behavior was replaced by
-fsanitize=<what>. For Clang 3.2, we enable the address sanitizer
and for 3.3 also the miscellaneous undefined behavior one.
Currently, there's no version auto-detection from the Makefiles, it's
set to 3.3 and the others are commented out.
------------------------------------------------------------------------
r3715 | helixhorned | 2013-04-29 12:24:12 -0700 (Mon, 29 Apr 2013) | 4 lines
Generalize ZRANGE and ANGRANGE to accept any nonnegative number.
Numbers 0 and 1 mean 'no spread', but the latter does one krand() call.
Negative numbers are reserved for potential future use.
------------------------------------------------------------------------