Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f14ed477
Commit
f14ed477
authored
Jun 18, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lread.c (string_to_number): Simplify the 2011-04-26 change by invoking xsignal1.
parent
e4d29b33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
src/ChangeLog
src/ChangeLog
+1
-0
src/lread.c
src/lread.c
+1
-1
No files found.
src/ChangeLog
View file @
f14ed477
...
...
@@ -4,6 +4,7 @@
All uses changed. This doesn't fix a bug, but it simplifies the
code away from its former Hollerith-constant appearance, and it's
one less 'int' to worry about when looking at integer-overflow issues.
(string_to_number): Simplify the 2011-04-26 change by invoking xsignal1.
* lisp.h (DEFUN): Remove bogus use of sizeof (struct Lisp_Subr).
This didn't break anything, but it didn't help either.
...
...
src/lread.c
View file @
f14ed477
...
...
@@ -3333,7 +3333,7 @@ string_to_number (char const *string, int base, int ignore_trailing)
/* Unfortunately there's no simple and accurate way to convert
non-base-10 numbers that are out of C-language range. */
if
(
base
!=
10
)
xsignal
(
Qoverflow_error
,
list1
(
build_string
(
string
))
)
;
xsignal
1
(
Qoverflow_error
,
build_string
(
string
));
}
else
if
(
n
<=
(
negative
?
-
MOST_NEGATIVE_FIXNUM
:
MOST_POSITIVE_FIXNUM
))
{
...
...
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