diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-06-01 09:38:21 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-06-01 09:38:21 +0000 |
commit | 4ebbc97598d793d933009eab4334e3bc88b8de4e (patch) | |
tree | bd34fe0190a421a881e13f6c1e18d7178999a3c5 /doop.c | |
parent | c0c883f471ccfb5834fe4c67653150bc540120d7 (diff) | |
download | perl-4ebbc97598d793d933009eab4334e3bc88b8de4e.tar.gz |
vec() loses numericalness (modified version of patch suggested
by Robin Barker)
p4raw-id: //depot/perl@6191
Diffstat (limited to 'doop.c')
-rw-r--r-- | doop.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -695,6 +695,7 @@ Perl_do_sprintf(pTHX_ SV *sv, I32 len, SV **sarg) SvTAINTED_on(sv); } +/* XXX SvUTF8 support missing! */ UV Perl_do_vecget(pTHX_ SV *sv, I32 offset, I32 size) { @@ -827,6 +828,7 @@ Perl_do_vecget(pTHX_ SV *sv, I32 offset, I32 size) return retnum; } +/* XXX SvUTF8 support missing! */ void Perl_do_vecset(pTHX_ SV *sv) { @@ -842,6 +844,7 @@ Perl_do_vecset(pTHX_ SV *sv) if (!targ) return; s = (unsigned char*)SvPV_force(targ, targlen); + (void)SvPOK_only(targ); lval = SvUV(sv); offset = LvTARGOFF(sv); size = LvTARGLEN(sv); |