aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorMatthias Gatto <uso.cosmo.ray@gmail.com>2017-07-25 16:25:27 +0200
committerMatthias Gatto <uso.cosmo.ray@gmail.com>2017-07-25 16:25:27 +0200
commit28b7c9b34ecd09afc6c1a36321aab59ebbd1c447 (patch)
tree3eede66ad26af5e44104631406a4b37e895cfb51 /libtcc.c
parentb72cddaa6e3a69dc4480ea128566215cd537a6e2 (diff)
downloadtinycc-28b7c9b34ecd09afc6c1a36321aab59ebbd1c447.tar.gz
tinycc-28b7c9b34ecd09afc6c1a36321aab59ebbd1c447.tar.bz2
define __SIZE_TYPE__ and __PTRDIFF_TYPE__ as unsigned int and int.
As long is now a qualifier, and because compare_type will notice that variables are not the same type, we can't use long as int anymore. So, I've redefine __SIZE_TYPE__ as unsigned int and __PTRDIFF_TYPE__ as int.
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtcc.c b/libtcc.c
index ec81992..6a5e452 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -848,8 +848,8 @@ LIBTCCAPI TCCState *tcc_new(void)
tcc_define_symbol(s, "__LP64__", NULL);
#else
/* Other 32bit systems. */
- tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long");
- tcc_define_symbol(s, "__PTRDIFF_TYPE__", "long");
+ tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned int");
+ tcc_define_symbol(s, "__PTRDIFF_TYPE__", "int");
tcc_define_symbol(s, "__ILP32__", NULL);
#endif