projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
41c8665
)
STRLEN != int.
Jarkko Hietaniemi [Mon, 13 Mar 2000 14:44:11 +0000 (14:44 +0000)]
p4raw-id: //depot/cfgperl@5705
mg.c
patch
|
blob
|
blame
|
history
diff --git
a/mg.c
b/mg.c
index
8bdb2ee
..
fbc74c4
100644
(file)
--- 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] ;