mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
indent(1): fix buildworld after r334632
Fix error: comparison of integers of different signs: 'int' and 'unsigned long' by casting nitems() to int. Reported by: mjg
This commit is contained in:
parent
12193215c2
commit
0929b3d971
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334640
@ -211,7 +211,7 @@ parse(int tk) /* tk: the code for the construct scanned */
|
||||
|
||||
} /* end of switch */
|
||||
|
||||
if (ps.tos >= nitems(ps.p_stack) - 1)
|
||||
if (ps.tos >= (int)nitems(ps.p_stack) - 1)
|
||||
errx(1, "Parser stack overflow");
|
||||
|
||||
reduce(); /* see if any reduction can be done */
|
||||
|
Loading…
Reference in New Issue
Block a user