Use nitems() from sys/param.h.
MFC after: 2 weeks. Sponsored by: gandi.net (BSD Day Taiwan)
This commit is contained in:
parent
f18e52f46e
commit
6cf1bae2d9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303547
@ -1138,7 +1138,7 @@ main(int argc, char **argv)
|
||||
while ((c = getc(input)) == '\n');
|
||||
ungetc(c, input);
|
||||
}
|
||||
if ((size_t)ifdef_level < sizeof(state_stack)/sizeof(state_stack[0])) {
|
||||
if ((size_t)ifdef_level < nitems(state_stack)) {
|
||||
match_state[ifdef_level].tos = -1;
|
||||
state_stack[ifdef_level++] = ps;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user