summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-11-22 23:59:15 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-22 23:59:15 +0000
commit793db0cbf2a1f8691eefd9130892b47143e8795f (patch)
treee26e57d57ebbefb8d01ac6a846e7d63d95b2c711 /sv.c
parent4a52322c1ec059cad07da381a8d64d764b79bdad (diff)
downloadperl-793db0cbf2a1f8691eefd9130892b47143e8795f.tar.gz
Fixes for signedness warnings noticed by VMSperlers.
p4raw-id: //depot/perl@7824
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 2cc3c43483..acb0b82efe 100644
--- a/sv.c
+++ b/sv.c
@@ -2961,8 +2961,11 @@ void
Perl_sv_setpvn(pTHX_ register SV *sv, register const char *ptr, register STRLEN len)
{
register char *dptr;
- assert(len >= 0); /* STRLEN is probably unsigned, so this may
- elicit a warning, but it won't hurt. */
+ {
+ /* len is STRLEN which is unsigned, need to copy to signed */
+ IV iv = len;
+ assert(iv >= 0);
+ }
SV_CHECK_THINKFIRST(sv);
if (!ptr) {
(void)SvOK_off(sv);