mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-15 22:01:36 -08:00
ECL's check for the integer sizes did not use the right printf macros to print long long numbers
This commit is contained in:
parent
0a0f5c4583
commit
e1d9bbaf77
2 changed files with 3818 additions and 8897 deletions
16
src/aclocal.m4
vendored
16
src/aclocal.m4
vendored
|
|
@ -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
12699
src/configure
vendored
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue