Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2e6578fb
Commit
2e6578fb
authored
May 22, 2011
by
Paul Eggert
Browse files
* lisp.h (FIXNUM_OVERFLOW_P): Work even if arg is a NaN.
parent
0ae6bdee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
src/ChangeLog
src/ChangeLog
+4
-0
src/lisp.h
src/lisp.h
+2
-3
No files found.
src/ChangeLog
View file @
2e6578fb
2011-05-22 Paul Eggert <eggert@cs.ucla.edu>
* lisp.h (FIXNUM_OVERFLOW_P): Work even if arg is a NaN.
2011-05-21 Paul Eggert <eggert@cs.ucla.edu>
* data.c: Avoid integer truncation in expressions involving floats.
...
...
src/lisp.h
View file @
2e6578fb
...
...
@@ -544,11 +544,10 @@ extern Lisp_Object make_number (EMACS_INT);
/* Value is non-zero if I doesn't fit into a Lisp fixnum. It is
written this way so that it also works if I is of unsigned
type. */
type
or if I is a NaN
. */
#define FIXNUM_OVERFLOW_P(i) \
((i) > MOST_POSITIVE_FIXNUM \
|| ((i) < 0 && (i) < MOST_NEGATIVE_FIXNUM))
(! ((0 <= (i) || MOST_NEGATIVE_FIXNUM <= (i)) && (i) <= MOST_POSITIVE_FIXNUM))
/* Extract a value or address from a Lisp_Object. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment