Commit 6af1696d authored by Andreas Schwab's avatar Andreas Schwab

(print_object): Add cast when passing EMACS_INT

values to sprintf.
parent 959e1b49
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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment