Skip to content

Commit

Permalink
MFi386: r275305 (by rdivacky)
Browse files Browse the repository at this point in the history
  Unbreak the code for non-digits below '0' by casting the expression
  to unsigned int.
  • Loading branch information
nyan- committed Dec 2, 2014
1 parent 76ebf59 commit 3047cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/boot/pc98/boot2/boot2.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ parse()
#if SERIAL
} else if (c == 'S') {
j = 0;
while ((i = *arg++ - '0') <= 9)
while ((unsigned int)(i = *arg++ - '0') <= 9)
j = j * 10 + i;
if (j > 0 && i == -'0') {
comspeed = j;
Expand Down

0 comments on commit 3047cb6

Please sign in to comment.