summaryrefslogtreecommitdiff
path: root/src/TMprint.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:49 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:49 +0000
commitbdc0667ef29e24b1a2188b11546d843a7d3e5ef6 (patch)
treee0a23167aca0fb1127f4cd78edf458b633b31eac /src/TMprint.c
parent6a13c9e08bb042c81ae904c44a38a50d785c824e (diff)
Diffstat (limited to 'src/TMprint.c')
-rw-r--r--src/TMprint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TMprint.c b/src/TMprint.c
index 24b0d2e..3b44326 100644
--- a/src/TMprint.c
+++ b/src/TMprint.c
@@ -58,6 +58,7 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
*/
+/* $XFree86: xc/lib/Xt/TMprint.c,v 1.6 2001/12/14 19:56:31 dawes Exp $ */
/*LINTLIBRARY*/
#include "IntrinsicI.h"
@@ -196,7 +197,7 @@ static void PrintCode(sb, mask, code)
if (mask != 0) {
if (mask != (unsigned long)~0L)
(void) sprintf(sb->current, "0x%lx:0x%lx", mask, code);
- else (void) sprintf(sb->current, /*"0x%lx"*/ "%d", code);
+ else (void) sprintf(sb->current, /*"0x%lx"*/ "%d", (unsigned)code);
sb->current += strlen(sb->current);
}
}