Cast correctly to U8, not char
authorKarl Williamson <khw@cpan.org>
Mon, 15 Feb 2016 18:02:07 +0000 (11:02 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 19 Feb 2016 03:26:50 +0000 (20:26 -0700)
U8 is what the function being called is expecting

regcomp.c

index 5316887..5dbccfb 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -16339,7 +16339,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
                            "\"%.*s\" is more clearly written simply as \"%s\"",
                            (int) (RExC_parse - rangebegin),
                            rangebegin,
-                           cntrl_to_mnemonic((char) value)
+                           cntrl_to_mnemonic((U8) value)
                         );
                 }
             }