Make sizeof() be of type size_t
commit718fd591fa93ff254a9ca68a0ad2ff8a55756489
authorMichael Matz <matz@suse.de>
Sun, 15 Apr 2012 23:13:25 +0000 (16 01:13 +0200)
committerMichael Matz <matz@suse.de>
Wed, 18 Apr 2012 18:57:14 +0000 (18 20:57 +0200)
tree69ef5bb9cdfa3673317df44c8ba402526e758ef8
parentb068e29df753192bdcec5b1e41401bdc21812136
Make sizeof() be of type size_t

This matters when sizeof is directly used in arithmetic,
ala "uintptr_t t; t &= -sizeof(long)" (for alignment).  When sizeof
isn't size_t (as it's specified to be) this masking will truncate
the high bits of the uintptr_t object (if uintptr_t is larger than
uint).
libtcc.c
tcc.h
tccgen.c
tests/tcctest.c