regcomp.c: silence compiler warning
authorDavid Mitchell <davem@iabyn.com>
Sat, 23 Mar 2013 21:29:26 +0000 (21:29 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sat, 23 Mar 2013 21:36:09 +0000 (21:36 +0000)
add a cast before doing a printf "%x" on a pointer

regcomp.c

index 316c4ee..6686d8b 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -11947,7 +11947,8 @@ S_handle_regex_sets(pTHX_ RExC_state_t *pRExC_state, SV** return_invlist, I32 *f
                              they're valid on this machine */
                     NULL);
     if (!node)
-        FAIL2("panic: regclass returned NULL to handle_sets, flags=%#X", flagp);
+        FAIL2("panic: regclass returned NULL to handle_sets, flags=%#"UVxf,
+                    PTR2UV(flagp));
     if (save_fold) {
         RExC_flags |= RXf_PMf_FOLD;
     }