Mercurial > emacs
changeset 86330:eba0d96e791f
(Fnumber_to_string): Add cast when passing EMACS_INT
values to sprintf.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Thu, 22 Nov 2007 16:15:24 +0000 |
parents | cecdfdf5f008 |
children | 1cebf9cacc3c |
files | src/data.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/data.c Thu Nov 22 16:12:58 2007 +0000 +++ b/src/data.c Thu Nov 22 16:15:24 2007 +0000 @@ -2471,7 +2471,7 @@ } if (sizeof (int) == sizeof (EMACS_INT)) - sprintf (buffer, "%d", XINT (number)); + sprintf (buffer, "%d", (int) XINT (number)); else if (sizeof (long) == sizeof (EMACS_INT)) sprintf (buffer, "%ld", (long) XINT (number)); else