summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-06-01 09:38:21 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-06-01 09:38:21 +0000
commit4ebbc97598d793d933009eab4334e3bc88b8de4e (patch)
treebd34fe0190a421a881e13f6c1e18d7178999a3c5 /doop.c
parentc0c883f471ccfb5834fe4c67653150bc540120d7 (diff)
downloadperl-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/doop.c b/doop.c
index 835dac63d3..175d0f2d13 100644
--- a/doop.c
+++ b/doop.c
@@ -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);