Author: nyan
Date: Tue Dec 2 14:48:21 2014
New Revision: 275411
URL: https://svnweb.freebsd.org/changeset/base/275411
Log:
MFi386: r275305 (by rdivacky)
Unbreak the code for non-digits below '0' by casting the expression
to unsigned int.
Modified:
head/sys/boot/pc98/boot2/boot2.c
Modified: head/sys/boot/pc98/boot2/boot2.c
==============================================================================
--- head/sys/boot/pc98/boot2/boot2.c Tue Dec 2 14:21:06 2014
(r275410)
+++ head/sys/boot/pc98/boot2/boot2.c Tue Dec 2 14:48:21 2014
(r275411)
@@ -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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"