From 76046526fe2d8c098b04697a5c3910adb8a84aca Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Wed, 4 Jul 2012 07:49:19 +0400 Subject: [PATCH] * buffer.c (Fgenerate_new_buffer_name): Fix type mismatch. --- src/ChangeLog | 4 ++++ src/buffer.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 7cc79bffa05..d6210b2b336 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-07-04 Dmitry Antipov + + * buffer.c (Fgenerate_new_buffer_name): Fix type mismatch. + 2012-07-04 Paul Eggert * regex.c: Suppress GCC warning on RHEL 6. (Bug#11207) diff --git a/src/buffer.c b/src/buffer.c index 2f8705c9a32..d9c0796af33 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -859,7 +859,7 @@ is first appended to NAME, to speed up finding a non-existent buffer. */) if (!strncmp (SSDATA (name), " ", 1)) /* see bug#1229 */ { /* Note fileio.c:make_temp_name does random differently. */ - sprintf (number, "-%"pD"d", Frandom (make_number (999999))); + sprintf (number, "-%"pD"d", XFASTINT (Frandom (make_number (999999)))); tem2 = concat2 (name, build_string (number)); tem = Fget_buffer (tem2); if (NILP (tem)) -- 2.39.2