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

This commit is contained in:
David E. O'Brien 2010-11-09 02:51:38 +00:00
parent 5e6906ee36
commit 6d4a0c96d3

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;