From c67955902ea6422b161245d240d702ddb3bcc722 Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Mon, 10 Feb 2014 09:41:42 +0400 Subject: [PATCH] * cmds.c (Fself_insert_command): Respect the width of EMACS_INT and avoid warning. --- src/ChangeLog | 5 +++++ src/cmds.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 399138a1d80..a0b7c449b95 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2014-02-10 Dmitry Antipov + + * cmds.c (Fself_insert_command): Respect the width of EMACS_INT + and avoid warning. + 2014-02-09 Lars Ingebrigtsen * cmds.c (Fself_insert_command): Output a clearer error message on diff --git a/src/cmds.c b/src/cmds.c index 29c574abb14..03ce54c8ee4 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -280,7 +280,7 @@ At the end, it runs `post-self-insert-hook'. */) CHECK_NUMBER (n); if (XFASTINT (n) < 1) - error ("Repetition argument is %d, but must be higher than 0.", + error ("Repetition argument is %"pI"d, but must be higher than 0.", XFASTINT (n)); if (!EQ (Vthis_command, KVAR (current_kboard, Vlast_command))) -- 2.39.2