summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorMarcus Holland-Moritz <mhx-perl@gmx.net>2003-07-08 13:14:05 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2003-07-08 08:36:27 +0000
commit8bafa73588ba25326f9c8e2987e930b62d25444f (patch)
tree18b526c68f814b842f03553e0e7f22ab47352ea9 /mg.c
parent3ea7755680302231fb5fb2feb962b211d651338f (diff)
downloadperl-8bafa73588ba25326f9c8e2987e930b62d25444f.tar.gz
warnings, line numbers & windows
Message-ID: <12022.1057655645@www59.gmx.net> p4raw-id: //depot/perl@20068
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index b69da05403..dc1666ab60 100644
--- a/mg.c
+++ b/mg.c
@@ -2375,7 +2375,7 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
#endif
/* PL_origalen is set in perl_parse(). */
s = SvPV_force(sv,len);
- if (len >= (I32)PL_origalen) {
+ if (len >= (STRLEN)PL_origalen) {
/* Longer than original, will be truncated. */
Copy(s, PL_origargv[0], PL_origalen, char);
PL_origargv[0][PL_origalen - 1] = 0;