From 66330f13dcaadca5415f34c49e4d1cd9b1ef8301 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 16 Jan 2012 12:53:35 -0700 Subject: localet.t: Change variable name to avoid the ambiguity of 'last' --- lib/locale.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/locale.t b/lib/locale.t index 0c428f9cdc..3c8d8f8137 100644 --- a/lib/locale.t +++ b/lib/locale.t @@ -258,7 +258,7 @@ unless ($have_setlocale) { } # The test number before our first setlocale() -my $last_without_setlocale = $test_num; +my $final_without_setlocale = $test_num; # Find locales. @@ -837,11 +837,11 @@ foreach $Locale (@Locale) { } } -my $last_locales = $have_setlocale ? &last_locales : $last_without_setlocale; +my $last_locales = $have_setlocale ? &last_locales : $final_without_setlocale; # Recount the errors. -foreach ($last_without_setlocale+1..$last_locales) { +foreach ($final_without_setlocale+1..$last_locales) { if ($Problem{$_} || !defined $Okay{$_} || !@{$Okay{$_}}) { if ($_ == 102) { print "# The failure of test 102 is not necessarily fatal.\n"; -- cgit v1.2.1