summaryrefslogtreecommitdiff
path: root/regcomp.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 /regcomp.c
parent4a52322c1ec059cad07da381a8d64d764b79bdad (diff)
downloadperl-793db0cbf2a1f8691eefd9130892b47143e8795f.tar.gz
Fixes for signedness warnings noticed by VMSperlers.
p4raw-id: //depot/perl@7824
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index 3b474b2458..c906790a86 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -3007,8 +3007,12 @@ tryagain:
loopdone:
RExC_parse = p - 1;
nextchar(pRExC_state);
- if (len < 0)
- vFAIL("Internal disaster");
+ {
+ /* len is STRLEN which is unsigned, need to copy to signed */
+ IV iv = len;
+ if (iv < 0)
+ vFAIL("Internal disaster");
+ }
if (len > 0)
*flagp |= HASWIDTH;
if (len == 1)