diff options
| author | Michael Matz <matz@suse.de> | 2012-04-16 01:13:25 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2012-04-18 20:57:14 +0200 |
| commit | 718fd591fa93ff254a9ca68a0ad2ff8a55756489 (patch) | |
| tree | 69ef5bb9cdfa3673317df44c8ba402526e758ef8 /tcc.h | |
| parent | b068e29df753192bdcec5b1e41401bdc21812136 (diff) | |
| download | tinycc-718fd591fa93ff254a9ca68a0ad2ff8a55756489.tar.gz tinycc-718fd591fa93ff254a9ca68a0ad2ff8a55756489.tar.bz2 | |
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).
Diffstat (limited to 'tcc.h')
| -rw-r--r-- | tcc.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1117,7 +1117,7 @@ ST_DATA Sym *local_stack; ST_DATA Sym *local_label_stack; ST_DATA Sym *global_label_stack; ST_DATA Sym *define_stack; -ST_DATA CType char_pointer_type, func_old_type, int_type; +ST_DATA CType char_pointer_type, func_old_type, int_type, size_type; ST_DATA SValue vstack[VSTACK_SIZE], *vtop; ST_DATA int rsym, anon_sym, ind, loc; |
