Date: Tue, 2 Dec 2014 14:48:22 +0000 (UTC) From: Takahashi Yoshihiro <nyan@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r275411 - head/sys/boot/pc98/boot2 Message-ID: <201412021448.sB2EmM3M061651@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412021448.sB2EmM3M061651>
