diff options
author | Jakob Kaivo <jkk@ung.org> | 2023-11-14 16:31:31 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2023-11-14 16:31:31 -0500 |
commit | 0030c5ea720f492fcaed2cd5ebb52f7ad54170fd (patch) | |
tree | 2c507618e3c22ce1062d823200d0811375797fcd /src/ctype/islower.c | |
parent | 88aa612a4e75833368f6c4552d95d1d5c1232555 (diff) |
return 0 if c is EOF
Diffstat (limited to 'src/ctype/islower.c')
-rw-r--r-- | src/ctype/islower.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ctype/islower.c b/src/ctype/islower.c index 259d1149..0a928a33 100644 --- a/src/ctype/islower.c +++ b/src/ctype/islower.c @@ -10,7 +10,7 @@ int islower(int c) ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); - return map[c] & CT_LOWER; + return c == EOF ? 0 : map[c] & CT_LOWER; } /*** |