aboutsummaryrefslogtreecommitdiff
path: root/tccrun.c
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-03-26 07:47:45 +0300
committerseyko <seyko2@gmail.com>2015-03-26 07:47:45 +0300
commitacef4ff244bb3b7af596d657e2f549e33c1daf43 (patch)
tree24d07535910d7479d26da01bf7bb7afcb4378e79 /tccrun.c
parent548a55eda53a0dcf2eabd617115c4e46330d7e23 (diff)
downloadtinycc-acef4ff244bb3b7af596d657e2f549e33c1daf43.tar.gz
tinycc-acef4ff244bb3b7af596d657e2f549e33c1daf43.tar.bz2
make a bound checking more compatible with Windows 64
On Linux 32: sizeof(long)=32 == sizeof(void *)=32 on Linux 64: sizeof(long)=64 == sizeof(void *)=64 on Windows 64: sizeof(long)=32 != sizeof(void *)=64
Diffstat (limited to 'tccrun.c')
-rw-r--r--tccrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccrun.c b/tccrun.c
index 8e53a70..55db310 100644
--- a/tccrun.c
+++ b/tccrun.c
@@ -110,7 +110,7 @@ LIBTCCAPI int tcc_run(TCCState *s1, int argc, char **argv)
if (s1->do_bounds_check) {
void (*bound_init)(void);
void (*bound_exit)(void);
- void (*bound_new_region)(void *p, unsigned long size);
+ void (*bound_new_region)(void *p, addr_t size);
int (*bound_delete_region)(void *p);
int i;