When we appear to want a signed value from sizeof(), use ssize_t in the cast,

rather than int.
This commit is contained in:
Juli Mallett 2002-10-30 15:50:00 +00:00
parent e8583ea057
commit 58896115b4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106210

View File

@ -453,7 +453,7 @@ constant(void)
ungetch();
return num();
}
for (i = 0; i < (int)sizeof(int); i++) {
for (i = 0; i < (ssize_t)sizeof(int); i++) {
if ((c = getch()) == '\'') {
ungetch();
break;