Fix the build on 64-bit hosts. WARNS=6 fails on them.

This commit is contained in:
obrien 2010-11-09 02:51:38 +00:00
parent de798597b0
commit 8a56aff73e

View File

@ -719,7 +719,7 @@ get_literal(void)
++cptr;
}
}
if (n > UCHAR_MAX) illegal_character(c_cptr);
if (n > (int)UCHAR_MAX) illegal_character(c_cptr);
c = n;
break;
@ -735,7 +735,7 @@ get_literal(void)
if (i < 0 || i >= 16) break;
++cptr;
n = (n << 4) + i;
if (n > UCHAR_MAX) illegal_character(c_cptr);
if (n > (int)UCHAR_MAX) illegal_character(c_cptr);
}
c = n;
break;