kill compiler warning on unsigned char platforms

This commit is contained in:
nick black 2021-12-13 00:30:13 -05:00
parent 31b328c688
commit 0f5a8855b6
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -261,7 +261,7 @@ trofftrie(void){
}
struct troffnode* n = root;
for(const char* s = t->symbol ; *s ; ++s){
if(*s < 0){ // illegal symbol
if(*s <= 0){ // illegal symbol
fprintf(stderr, "illegal symbol: %s\n", t->symbol);
goto err;
}