]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fsingle_key_description): Add cast when passing EMACS_INT
authorAndreas Schwab <schwab@suse.de>
Thu, 22 Nov 2007 16:15:44 +0000 (16:15 +0000)
committerAndreas Schwab <schwab@suse.de>
Thu, 22 Nov 2007 16:15:44 +0000 (16:15 +0000)
values to sprintf.

src/keymap.c

index 2edad90b73273f1f21da54ae798554ab6d469fc3..88b63e40fccda0bb0c60ce785aa5039a5d9fcca7 100644 (file)
@@ -2469,7 +2469,7 @@ around function keys and event symbols.  */)
        {
          char buf[256];
 
-         sprintf (buf, "Invalid char code %ld", XINT (key));
+         sprintf (buf, "Invalid char code %ld", (long) XINT (key));
          return build_string (buf);
        }
       else if (charset