summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-03-13 14:44:11 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-03-13 14:44:11 +0000
commitb547753728bd5c054a3d5bcbabbec2c9aa17fd5b (patch)
treea653895ff1aeb6c94b85077bdc8d88601cfbc099 /mg.c
parent41c8665267af44a0f78939ca2d73ee3267405995 (diff)
downloadperl-b547753728bd5c054a3d5bcbabbec2c9aa17fd5b.tar.gz
STRLEN != int.
p4raw-id: //depot/cfgperl@5705
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mg.c b/mg.c
index 8bdb2ee862..fbc74c41b2 100644
--- a/mg.c
+++ b/mg.c
@@ -1724,9 +1724,8 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
PL_dowarn |= G_WARN_ONCE ;
}
else {
- int i ;
+ STRLEN len, i;
int accumulate = 0 ;
- int len ;
char * ptr = (char*)SvPV(sv, len) ;
for (i = 0 ; i < len ; ++i)
accumulate += ptr[i] ;