]> rtime.felk.cvut.cz Git - ulut.git/commit
Be more explicit in overflow arithmetic compare to avoid possible undefined behavior.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Sat, 21 May 2011 23:50:22 +0000 (01:50 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Sat, 21 May 2011 23:50:22 +0000 (01:50 +0200)
commit689a441c1852d707eb7d29a8ff9135b75a397aa1
tree005f46d615c0561f0a4bab66d8df54d70d6b6f16
parentb812706643311215ea9200a4fbebcdd1ebee2792
Be more explicit in overflow arithmetic compare to avoid possible undefined behavior.

The C standard declares modulo arithmetic behavior only for unsigned
types.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
ulut/ul_utdefs.h