From a6fb6b70c7d08b9243aecff1fa059758ddf39e52 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 20 Feb 2010 11:58:26 +0000 Subject: fix compiler warning --- lib/mprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mprintf.c') diff --git a/lib/mprintf.c b/lib/mprintf.c index 3d65e9ff7..f5daa39fc 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -911,7 +911,7 @@ static int dprintf_formatf( static const char strnil[] = "(nil)"; const char *point; - width -= sizeof(strnil) - 1; + width -= (long)(sizeof(strnil) - 1); if(p->flags & FLAGS_LEFT) while(width-- > 0) OUTCHAR(' '); -- cgit v1.2.3