expand: avoid an extraneous warning on 32 bit

* src/expand-common (parse-tab-stops): Exit earlier upon overflow
so another warning isn't issued (on 32 bit) in add_tab_stop().
Flagged in https://hydra.nixos.org/build/49499970
This commit is contained in:
Pádraig Brady committed 2017-03-01 09:25:28 -08:00
1 parent 109ba4441b
commit 3be3da3bec
1 file changed
+2 -3
+2 -3
View File
@@ -126,7 +126,6 @@ parse_tab_stops (char const *stops)
{
if (! set_extend_size (tabval))
{
extend_tabval = false;
ok = false;
break;
}
@@ -175,7 +174,7 @@ parse_tab_stops (char const *stops)
}
}
if (have_tabval)
if (ok && have_tabval)
{
if (extend_tabval)
ok &= set_extend_size (tabval);
@@ -183,7 +182,7 @@ parse_tab_stops (char const *stops)
add_tab_stop (tabval);
}
if (!ok)
if (! ok)
exit (EXIT_FAILURE);
}