fix -Wparentheses warning

Signed-off-by: Masanori Ogino <mogino@acm.org>
This commit is contained in:
SASANO Takayoshi 2023-11-29 21:18:00 +09:00 • committed by Masanori Ogino
commit 7ed78cdf8d
4 changed files with 35 additions and 35 deletions

View file

@ -153,7 +153,7 @@ char *input;
fp = stdin;
while (fgets((char *)buf, sizeof(buf), fp)) {
if (p = (unsigned char *)strchr((char *)buf, '\n'))
if ((p = (unsigned char *)strchr((char *)buf, '\n')))
*p = '\0';
else {
do {