Module Name: src
Committed By: phx
Date: Mon Mar 7 22:18:46 UTC 2011
Modified Files:
src/sys/arch/sandpoint/stand/altboot: printf.c
Log Message:
mkdigit() didn't work with values which have bit 31 set (>=0x80000000).
Do not cast to (int).
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/sandpoint/stand/altboot/printf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sandpoint/stand/altboot/printf.c
diff -u src/sys/arch/sandpoint/stand/altboot/printf.c:1.3 src/sys/arch/sandpoint/stand/altboot/printf.c:1.4
--- src/sys/arch/sandpoint/stand/altboot/printf.c:1.3 Sun Jan 23 02:08:24 2011
+++ src/sys/arch/sandpoint/stand/altboot/printf.c Mon Mar 7 22:18:46 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: printf.c,v 1.3 2011/01/23 02:08:24 nisimura Exp $ */
+/* $NetBSD: printf.c,v 1.4 2011/03/07 22:18:46 phx Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -255,7 +255,7 @@
t = ptmp;
*t++ = '\0';
do {
- int d = (int)llval % base;
+ int d = llval % base;
*t++ = hexdigit[d];
llval /= base;
} while (llval != 0 && ++n < sizeof(ptmp));