aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert2011-05-06 00:13:19 -0700
committerPaul Eggert2011-05-06 00:13:19 -0700
commitb08a63ccec4bda5556777ab8538b92726fd55a1e (patch)
treeceff3193260c813b66dff7254920ef8dc4a05b3f /doc
parent548d0a63d6212c0baef9a3d2bf0093cceb4e1136 (diff)
parent8ff0ac3c78498c905a22786aa124f59d213b99a0 (diff)
downloademacs-b08a63ccec4bda5556777ab8538b92726fd55a1e.tar.gz
emacs-b08a63ccec4bda5556777ab8538b92726fd55a1e.zip
Do not assume EMACS_INT is the same width as a pointer.
This prepares for a future patch that will prefer 64-bit EMACS_INT if available. That patch can be tried now, by compiling with -DWIDE_EMACS_INT, but it is temporarily not the default so that it can be further tested. Also, install some other fixes for problems discovered by the static checking of GCC 4.6.0. Fixes: debbugs:8545 debbugs:8601 debbugs:8600 debbugs:8602
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/numbers.texi7
2 files changed, 8 insertions, 3 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 4aa63c6abaa..7ef3be46b68 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12011-05-06 Paul Eggert <eggert@cs.ucla.edu>
2
3 * numbers.texi (Integer Basics): Large integers are treated as floats.
4
12011-04-30 Lars Magne Ingebrigtsen <larsi@gnus.org> 52011-04-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 6
3 * processes.texi (Synchronous Processes): Document the (:file 7 * processes.texi (Synchronous Processes): Document the (:file
diff --git a/doc/lispref/numbers.texi b/doc/lispref/numbers.texi
index 23150c2c937..2c73a03a26c 100644
--- a/doc/lispref/numbers.texi
+++ b/doc/lispref/numbers.texi
@@ -55,14 +55,15 @@ chapter assume an integer has 30 bits.
55@cindex overflow 55@cindex overflow
56 56
57 The Lisp reader reads an integer as a sequence of digits with optional 57 The Lisp reader reads an integer as a sequence of digits with optional
58initial sign and optional final period. 58initial sign and optional final period. An integer that is out of the
59Emacs range is treated as a floating-point number.
59 60
60@example 61@example
61 1 ; @r{The integer 1.} 62 1 ; @r{The integer 1.}
62 1. ; @r{The integer 1.} 63 1. ; @r{The integer 1.}
63+1 ; @r{Also the integer 1.} 64+1 ; @r{Also the integer 1.}
64-1 ; @r{The integer @minus{}1.} 65-1 ; @r{The integer @minus{}1.}
65 1073741825 ; @r{Also the integer 1, due to overflow.} 66 1073741825 ; @r{The floating point number 1073741825.0.}
66 0 ; @r{The integer 0.} 67 0 ; @r{The integer 0.}
67-0 ; @r{The integer 0.} 68-0 ; @r{The integer 0.}
68@end example 69@end example
@@ -195,7 +196,7 @@ point values:
195@samp{1.0e+INF} 196@samp{1.0e+INF}
196@item negative infinity 197@item negative infinity
197@samp{-1.0e+INF} 198@samp{-1.0e+INF}
198@item Not-a-number 199@item Not-a-number
199@samp{0.0e+NaN} or @samp{-0.0e+NaN}. 200@samp{0.0e+NaN} or @samp{-0.0e+NaN}.
200@end table 201@end table
201 202