X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/25a46077dece917065e07832c1349484aadc7178..43cc2463d26364b13b776dd272170a809b2db800:/src/files.c diff --git a/src/files.c b/src/files.c index 8dcf357f..2354acbe 100644 --- a/src/files.c +++ b/src/files.c @@ -384,7 +384,7 @@ compute_base_names (void) /* If the initial segment of extension contains a 'y' or a 'Y', I assume that it is a yacc or bison grammar file. */ if (ext_index) - ext_index = (strspn (infile + ext_index + 1, "yY")) ? ext_index : 0; + ext_index = strspn (infile + ext_index + 1, "yY") ? ext_index : 0; if (ext_index) compute_exts_from_gf (infile + ext_index); @@ -407,7 +407,7 @@ compute_base_names (void) /* If the initial segment of extension contains a 'y' or a 'Y', I assume that it is a yacc or bison grammar file. */ if (ext_index) - ext_index = (strspn (name_base + ext_index + 1, "yY")) ? ext_index : 0; + ext_index = strspn (name_base + ext_index + 1, "yY") ? ext_index : 0; if (ext_index) { base_length -= strlen (name_base + ext_index);