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
dfa3bb7a
Commit
dfa3bb7a
authored
Nov 22, 2007
by
Andreas Schwab
Browse files
(Fnumber_to_string): Add cast when passing EMACS_INT
values to sprintf.
parent
3042deef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/data.c
src/data.c
+1
-1
No files found.
src/data.c
View file @
dfa3bb7a
...
...
@@ -2471,7 +2471,7 @@ NUMBER may be an integer or a floating point number. */)
}
if
(
sizeof
(
int
)
==
sizeof
(
EMACS_INT
))
sprintf
(
buffer
,
"%d"
,
XINT
(
number
));
sprintf
(
buffer
,
"%d"
,
(
int
)
XINT
(
number
));
else
if
(
sizeof
(
long
)
==
sizeof
(
EMACS_INT
))
sprintf
(
buffer
,
"%ld"
,
(
long
)
XINT
(
number
));
else
...
...
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