diff options
author | Nicholas Clark <nick@ccl4.org> | 2021-07-02 12:45:42 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2022-02-19 19:46:37 +0000 |
commit | bb5bc97fde9ef2f16cffdfb44d7f42a03311ab2f (patch) | |
tree | bb279aaf82ca65990a0c0edb8007a97fda158002 /sv.h | |
parent | 9cb26ed2ae572b61849be5ef0d9e2fc19c8e49a8 (diff) | |
download | perl-bb5bc97fde9ef2f16cffdfb44d7f42a03311ab2f.tar.gz |
Don't set SVf_POK in Perl_sv_2pv_flags() when caching the string for an IV.
This permits XS code (such as serialisers) to distinguish between values
that started as IVs but had a string representation cached, and values that
started as PVs but had an (exact) integer representation cached.
As implemented, the change in flags means that Perl_sv_2pv_flags() will be
entered each time the string for an IV is wanted. The next commit will fix
SvPV() and the other macros to avoid calling Perl_sv_2pv_flags() more than
once, restoring the previous behaviour.
Diffstat (limited to 'sv.h')
0 files changed, 0 insertions, 0 deletions