]> git.saurik.com Git - bison.git/blobdiff - src/files.c
* lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c,
[bison.git] / src / files.c
index 8dcf357f88577ed02b93dca6a8749cabb2fa4caf..2354acbeceed3f10f8c6e0deb567f7dec264c52f 100644 (file)
@@ -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);