From 7fde0dcd49c0f63f336453866f1af7e89b4e7776 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 11 Jul 2013 09:20:09 +0200 Subject: [PATCH] SL::PrefixedNumber::set_to_max: mit undefinierten Werten klarkommen --- SL/PrefixedNumber.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/PrefixedNumber.pm b/SL/PrefixedNumber.pm index 849421f97..b3f609892 100644 --- a/SL/PrefixedNumber.pm +++ b/SL/PrefixedNumber.pm @@ -64,7 +64,7 @@ sub set_to { sub set_to_max { my ($self, @numbers) = @_; - return $self->set_to(max map { SL::PrefixedNumber->new(number => $_)->_state->{ref_number} } @numbers); + return $self->set_to(max map { SL::PrefixedNumber->new(number => $_ // 0)->_state->{ref_number} } @numbers); } 1; -- 2.20.1