]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix build on some 32bit systems with strtoll()
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 16 Jun 2014 22:45:23 +0000 (16:45 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 16 Jun 2014 22:45:23 +0000 (16:45 -0600)
commit880d2ea6b0ad3d7cdb4589bb608fb0ff922d979c
treedeb045f719191ab1d5d8ff95a2f2075c2cbdbceb
parent3f9d0e1c95b6dd06b10172c9411443ebcd04eb8a
Fix build on some 32bit systems with strtoll()
broken by r13429 that duplicated unportable portability code.

GCC exits with errors: integer constant is too large for 'long' type

nnnL constants are "long" and cannot hold 64bit integers on 32bit platforms.
Use LL suffix for 64bit constants for now. It remains to be seen how portable
that LL C++ extension is: https://gcc.gnu.org/onlinedocs/gcc/Long-Long.html

Also fixed INT64_MIN #define (missing parenthesis).
compat/strtoll.c
src/parser/Tokenizer.cc