summaryrefslogtreecommitdiff
path: root/lib/overload
diff options
context:
space:
mode:
Diffstat (limited to 'lib/overload')
-rw-r--r--lib/overload/numbers.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/overload/numbers.pm b/lib/overload/numbers.pm
index b76875891a..2e9e9ac1d9 100644
--- a/lib/overload/numbers.pm
+++ b/lib/overload/numbers.pm
@@ -153,7 +153,7 @@ our @enums = qw#
DESTROY
#;
-{ my $i; our %names = map { $_ => ++$i } @names }
+{ my $i = 0; our %names = map { $_ => $i++ } @names }
-{ my $i; our %enums = map { $_ => ++$i } @enums }
+{ my $i = 0; our %enums = map { $_ => $i++ } @enums }