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:
Piotr Pawel Stefaniak 2018-06-04 21:21:55 +00:00
parent 12193215c2
commit 0929b3d971
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334640

View File

@ -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 */