summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexp.h b/regexp.h
index 7696ec25b8..b41c0a41e1 100644
--- a/regexp.h
+++ b/regexp.h
@@ -437,7 +437,7 @@ and check for NULL.
({ \
/* This is here to generate a casting warning if incorrect. */ \
REGEXP *const zwapp = (re); \
- SvREFCNT_inc(zwapp); \
+ (REGEXP *) SvREFCNT_inc(zwapp); \
})
# define ReREFCNT_dec(re) \
({ \
@@ -447,7 +447,7 @@ and check for NULL.
})
#else
# define ReREFCNT_dec(re) SvREFCNT_dec(re)
-# define ReREFCNT_inc(re) SvREFCNT_inc(re)
+# define ReREFCNT_inc(re) ((REGEXP *) SvREFCNT_inc(re))
#endif
/* FIXME for plugins. */