diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-11-09 17:36:44 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-11-09 18:11:18 -0800 |
commit | f595e19fc20e4a7fe60155dc88d9d801570d9abd (patch) | |
tree | 4e98b4f659892fe2a1cbc3c823cb4a42abea484a /proto.h | |
parent | 17571deb79d6d8ff99940a54a3a80d36716f018a (diff) | |
download | perl-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 'proto.h')
-rw-r--r-- | proto.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6471,7 +6471,7 @@ PERL_STATIC_NO_RET void S_usage(pTHX) #endif #if defined(PERL_IN_PP_C) -STATIC void S_do_chomp(pTHX_ SV *retval, SV *sv, bool chomping) +STATIC size_t S_do_chomp(pTHX_ SV *retval, SV *sv, bool chomping) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); #define PERL_ARGS_ASSERT_DO_CHOMP \ |