(set_file_variables): Add parens in length computation in .SUFFIXES dep

loop to quiet compiler warning.  From Jim Meyering.
This commit is contained in:
Roland McGrath 1994-07-25 22:09:25 +00:00
parent 90dffad2cc
commit 9a3666d550

View file

@ -87,7 +87,7 @@ set_file_variables (file)
for (d = enter_file (".SUFFIXES")->deps; d != 0; d = d->next)
{
unsigned int slen = strlen (dep_name (d));
if (len > slen && !strncmp (dep_name (d), name + len - slen, slen))
if (len > slen && !strncmp (dep_name (d), name + (len - slen), slen))
{
file->stem = savestring (name, len - slen);
break;