From 40d9d9f04b904aaedbcb97335bbd4f1789808d88 Mon Sep 17 00:00:00 2001 From: tomo Date: Thu, 14 Jun 2001 09:00:47 +0000 Subject: [PATCH] (unsigned_int_converters): Add `c'. (emacs_doprnt_1): Use `XUINT' for unsigned integers. --- src/doprnt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doprnt.c b/src/doprnt.c index 74d4c27..5012158 100644 --- a/src/doprnt.c +++ b/src/doprnt.c @@ -34,7 +34,7 @@ Boston, MA 02111-1307, USA. */ static const char * const valid_flags = "-+ #0"; static const char * const valid_converters = "dic" "ouxX" "feEgG" "sS"; static const char * const int_converters = "dic"; -static const char * const unsigned_int_converters = "ouxX"; +static const char * const unsigned_int_converters = "ouxXc"; static const char * const double_converters = "feEgG"; static const char * const string_converters = "sS"; @@ -586,7 +586,7 @@ emacs_doprnt_1 (Lisp_Object stream, const Bufbyte *format_nonreloc, obj = Ftruncate (obj); if (strchr (unsigned_int_converters, ch)) - arg.ul = (unsigned long) XINT (obj); + arg.ul = (unsigned long) XUINT (obj); else arg.l = XINT (obj); } -- 1.7.10.4