projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
a7116c4
)
Fix potential_value for string inc
Dave Rolsky [Sat, 25 Sep 2010 20:06:41 +0000 (15:06 -0500)]
lib/Moose/Meta/Method/Accessor/Native/String/inc.pm
patch
|
blob
|
blame
|
history
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
(file)
--- 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 {