When we appear to want a signed value from sizeof(), use ssize_t in the cast,
rather than int.
This commit is contained in:
parent
e8583ea057
commit
58896115b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106210
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user