This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In Perl_sv_pos_u2b_flags and S_sv_pos_u2b_cached, return early for offset 0.
authorNicholas Clark <nick@ccl4.org>
Sun, 11 Jul 2010 16:17:37 +0000 (17:17 +0100)
committerNicholas Clark <nick@ccl4.org>
Sun, 11 Jul 2010 16:17:37 +0000 (17:17 +0100)
commit48f9cf718354a5326f9e9d40d02a063952160024
tree804aa15656fb52243208f0b46485adc7012d6117
parent503752a16bf16b90ff6c073c4bd5d818e68a2e2a
In Perl_sv_pos_u2b_flags and S_sv_pos_u2b_cached, return early for offset 0.

0 Unicode characters are always 0 octets long. Returning early ensures that
any offsets we calculate later will always be non-zero.
sv.c