summaryrefslogtreecommitdiff
path: root/ext/Encode
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2002-05-07 23:42:42 +0000
committerGurusamy Sarathy <gsar@cpan.org>2002-05-07 23:42:42 +0000
commit6e21dc912fff1c74f60032b406b7b96bd0c3ee86 (patch)
tree42fe393a335e7d83f20b810c752ed094142982f7 /ext/Encode
parent22a65f1e060cc583560af22c8de3f5ccad3c0161 (diff)
downloadperl-6e21dc912fff1c74f60032b406b7b96bd0c3ee86.tar.gz
fixes for various warnings identified by Visual C++
p4raw-id: //depot/perl@16460
Diffstat (limited to 'ext/Encode')
-rw-r--r--ext/Encode/Encode.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/Encode/Encode.xs b/ext/Encode/Encode.xs
index 4e95671d8d..0f3f1d4185 100644
--- a/ext/Encode/Encode.xs
+++ b/ext/Encode/Encode.xs
@@ -106,7 +106,7 @@ encode_method(pTHX_ encode_t * enc, encpage_t * dir, SV * src,
more = (1.0*tlen*SvLEN(dst)+sdone-1)/sdone
- SvLEN(dst);
#elif ENCODE_XS_USEFP
- more = (1.0*SvLEN(dst)+1)/sdone * sleft;
+ more = (STRLEN)((1.0*SvLEN(dst)+1)/sdone * sleft);
#else
/* safe until SvLEN(dst) == MAX_INT/16 */
more = (16*SvLEN(dst)+1)/sdone/16 * sleft;