diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-22 23:59:15 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-22 23:59:15 +0000 |
commit | 793db0cbf2a1f8691eefd9130892b47143e8795f (patch) | |
tree | e26e57d57ebbefb8d01ac6a846e7d63d95b2c711 /regcomp.c | |
parent | 4a52322c1ec059cad07da381a8d64d764b79bdad (diff) | |
download | perl-793db0cbf2a1f8691eefd9130892b47143e8795f.tar.gz |
Fixes for signedness warnings noticed by VMSperlers.
p4raw-id: //depot/perl@7824
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) |