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
6af1696d
Commit
6af1696d
authored
Nov 22, 2007
by
Andreas Schwab
Browse files
(print_object): Add cast when passing EMACS_INT
values to sprintf.
parent
959e1b49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
src/ChangeLog
src/ChangeLog
+7
-0
src/print.c
src/print.c
+1
-1
No files found.
src/ChangeLog
View file @
6af1696d
2007-11-22 Andreas Schwab <schwab@suse.de>
* data.c (Fnumber_to_string): Add cast when passing EMACS_INT
values to sprintf.
* keymap.c (Fsingle_key_description): Likewise.
* print.c (print_object): Likewise.
2007-11-22 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
...
...
src/print.c
View file @
6af1696d
...
...
@@ -1549,7 +1549,7 @@ print_object (obj, printcharfun, escapeflag)
{
case Lisp_Int:
if (sizeof (int) == sizeof (EMACS_INT))
sprintf (buf, "%d", XINT (obj));
sprintf (buf, "%d",
(int)
XINT (obj));
else if (sizeof (long) == sizeof (EMACS_INT))
sprintf (buf, "%ld", (long) XINT (obj));
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