From: Dave Rolsky Date: Sat, 25 Sep 2010 20:06:41 +0000 (-0500) Subject: Fix potential_value for string inc X-Git-Tag: 1.15~87 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e144da7d49b0cf0fe9f45bf4834fff94f94acd1d;p=gitmo%2FMoose.git Fix potential_value for string inc --- diff --git a/lib/Moose/Meta/Method/Accessor/Native/String/inc.pm b/lib/Moose/Meta/Method/Accessor/Native/String/inc.pm index 1622571..23de319 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/String/inc.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/String/inc.pm @@ -15,7 +15,7 @@ sub _maximum_arguments { 0 } sub _potential_value { my ( $self, $slot_access ) = @_; - return "( do { my \$val = $slot_access; \$val++ } )"; + return "( do { my \$val = $slot_access; \$val++; \$val } )"; } sub _inline_optimized_set_new_value {