changeset 86332:ee344f824d4a

(print_object): Add cast when passing EMACS_INT values to sprintf.
author Andreas Schwab <schwab@suse.de>
date Thu, 22 Nov 2007 16:16:02 +0000
parents 1cebf9cacc3c
children 3360920fa85b
files src/print.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/print.c	Thu Nov 22 16:15:44 2007 +0000
+++ b/src/print.c	Thu Nov 22 16:16:02 2007 +0000
@@ -1549,7 +1549,7 @@
     {
     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