summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-07-28 20:55:31 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-07-28 21:24:02 -0400
commit9cd990bfb433aa02bf17c9b9f23ddc7c56a9a016 (patch)
tree98a14231f446cf027357750cd265664b6e4a2522 /regexec.c
parenta5a49cbf4d6eb36d453c1c5eb58984d66bb4b45e (diff)
downloadperl-9cd990bfb433aa02bf17c9b9f23ddc7c56a9a016.tar.gz
Negatives as UVs: sign-extension intentional, add cast.
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index 58b3f60245..3b4a889f3c 100644
--- a/regexec.c
+++ b/regexec.c
@@ -3636,8 +3636,8 @@ S_setup_EXACTISH_ST_c1_c2(pTHX_ const regnode * const text_node, int *c1p,
const bool utf8_target = reginfo->is_utf8_target;
- UV c1 = CHRTEST_NOT_A_CP_1;
- UV c2 = CHRTEST_NOT_A_CP_2;
+ UV c1 = (UV)CHRTEST_NOT_A_CP_1;
+ UV c2 = (UV)CHRTEST_NOT_A_CP_2;
bool use_chrtest_void = FALSE;
const bool is_utf8_pat = reginfo->is_utf8_pat;