aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-05-05 02:56:20 +0000
committerRichard M. Stallman1995-05-05 02:56:20 +0000
commitfaca07fb62cb8a202972700054d2939401cfa778 (patch)
tree913e609cd6eb85c2b279815bf53898c1308f85d1 /src
parent5d5b907f9a2bf2ccf7e99ff658c78ebacb4dee65 (diff)
downloademacs-faca07fb62cb8a202972700054d2939401cfa778.tar.gz
emacs-faca07fb62cb8a202972700054d2939401cfa778.zip
(read1): Handle long EMACS_INT in atol.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c
index 81670ebe048..5f1643e86d6 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1442,7 +1442,12 @@ read1 (readcharfun, pch, first_in_list)
1442 if (p1[-1] == '.') 1442 if (p1[-1] == '.')
1443 p1[-1] = '\0'; 1443 p1[-1] = '\0';
1444#endif 1444#endif
1445 XSETINT (val, atoi (read_buffer)); 1445 if (sizeof (int) == sizeof (EMACS_INT))
1446 XSETINT (val, atoi (read_buffer));
1447 else if (sizeof (long) == sizeof (EMACS_INT))
1448 XSETINT (val, atol (read_buffer));
1449 else
1450 abort ();
1446 return val; 1451 return val;
1447 } 1452 }
1448 } 1453 }