diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-03-13 14:44:11 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-03-13 14:44:11 +0000 |
commit | b547753728bd5c054a3d5bcbabbec2c9aa17fd5b (patch) | |
tree | a653895ff1aeb6c94b85077bdc8d88601cfbc099 | |
parent | 41c8665267af44a0f78939ca2d73ee3267405995 (diff) | |
download | perl-b547753728bd5c054a3d5bcbabbec2c9aa17fd5b.tar.gz |
STRLEN != int.
p4raw-id: //depot/cfgperl@5705
-rw-r--r-- | mg.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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] ; |