summaryrefslogtreecommitdiff
path: root/src/TMprint.c
diff options
context:
space:
mode:
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);
}
}