aboutsummaryrefslogtreecommitdiff
path: root/src/output.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-08-29 21:20:32 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-08-29 21:20:32 -0400
commitd6e4b4c1561596b7e11c375a1d37669d00827a08 (patch)
treefb93dcf4cf6a9cbc0cdbc0ebbd6ae117a1110556 /src/output.c
parent1d247dbb9388c90786f9124535ec906036545831 (diff)
downloadseabios-hppa-d6e4b4c1561596b7e11c375a1d37669d00827a08.zip
seabios-hppa-d6e4b4c1561596b7e11c375a1d37669d00827a08.tar.gz
seabios-hppa-d6e4b4c1561596b7e11c375a1d37669d00827a08.tar.bz2
Fix bug in dprintf - isdigit had sign overflow problem.
Diffstat (limited to 'src/output.c')
-rw-r--r--src/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output.c b/src/output.c
index ff190f8..b09677e 100644
--- a/src/output.c
+++ b/src/output.c
@@ -148,7 +148,7 @@ puthex(u16 action, u32 val)
static inline int
isdigit(u8 c)
{
- return c - '0' < 10;
+ return ((u8)(c - '0')) < 10;
}
static void