summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-11-09 17:36:44 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-11-09 18:11:18 -0800
commitf595e19fc20e4a7fe60155dc88d9d801570d9abd (patch)
tree4e98b4f659892fe2a1cbc3c823cb4a42abea484a /embed.fnc
parent17571deb79d6d8ff99940a54a3a80d36716f018a (diff)
downloadperl-f595e19fc20e4a7fe60155dc88d9d801570d9abd.tar.gz
Fix $lex = chomp $lex regression from 5.12
Commit 2f9970be0 (5.13.9) caused the lhs to be written to with 0 before the chomp happens, and then incremented for each chomp on the rhs argument. That makes my $a = $/ = 7; $a = chomp $a; print $a; print 0 instead of 1 and makes my $a = $/ = 0; $a = chomp $a; assign the empty string to $a instead of 1.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.fnc b/embed.fnc
index 7a733fb053..822f2c1a2e 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -2004,7 +2004,7 @@ s |SV * |incpush_if_exists|NN AV *const av|NN SV *dir|NN SV *const stem
#endif
#if defined(PERL_IN_PP_C)
-s |void |do_chomp |NN SV *retval|NN SV *sv|bool chomping
+s |size_t |do_chomp |NN SV *retval|NN SV *sv|bool chomping
s |OP* |do_delete_local
sR |SV* |refto |NN SV* sv
#endif