ECL's check for the integer sizes did not use the right printf macros to print long long numbers

This commit is contained in:
Juan Jose Garcia Ripoll 2012-08-19 20:40:28 +02:00
parent 0a0f5c4583
commit e1d9bbaf77
2 changed files with 3818 additions and 8897 deletions

16
src/aclocal.m4 vendored
View file

@ -623,12 +623,12 @@ int main() {
for (bits=1; ((t << 1) >> 1) == t; bits++, t <<= 1);
l = (~l) << (bits - 3);
#if 1
fprintf(f,"CL_FIXNUM_MIN='%ld';",l);
fprintf(f,"CL_FIXNUM_MAX='%ld';",-(l+1));
fprintf(f,"CL_FIXNUM_MIN='%ldL';",l);
fprintf(f,"CL_FIXNUM_MAX='%ldL';",-(l+1));
#else
l++;
fprintf(f,"CL_FIXNUM_MIN='%ld';",l);
fprintf(f,"CL_FIXNUM_MAX='%ld';",-l);
fprintf(f,"CL_FIXNUM_MIN='%ldL';",l);
fprintf(f,"CL_FIXNUM_MAX='%ldL';",-l);
#endif
#ifdef ECL_LONG_LONG_BITS
} else if (sizeof(long long) >= sizeof(void*)) {
@ -638,12 +638,12 @@ int main() {
for (bits=1; ((t << 1) >> 1) == t; bits++, t <<= 1);
l = (~l) << (bits - 3);
# if 1
fprintf(f,"CL_FIXNUM_MIN='%ld';",l);
fprintf(f,"CL_FIXNUM_MAX='%ld';",-(l+1));
fprintf(f,"CL_FIXNUM_MIN='%lldLL';",l);
fprintf(f,"CL_FIXNUM_MAX='%lldLL';",-(l+1));
# else
l++;
fprintf(f,"CL_FIXNUM_MIN='%ld';",l);
fprintf(f,"CL_FIXNUM_MAX='%ld';",-l);
fprintf(f,"CL_FIXNUM_MIN='%lldLL';",l);
fprintf(f,"CL_FIXNUM_MAX='%lldLL';",-l);
# endif
#endif
} else {

12699
src/configure vendored

File diff suppressed because it is too large Load diff