summaryrefslogtreecommitdiff
path: root/gv.h
diff options
context:
space:
mode:
authorGeorge Greer <perl@greerga.m-l.org>2010-05-26 21:12:37 -0400
committerRafael Garcia-Suarez <rgs@consttype.org>2010-05-27 07:19:04 +0200
commit1404b48744cfa915e3f54775feb4e9b6c10f3b91 (patch)
tree628a7d2198ca2b45ed89479ab534de39d6683cd6 /gv.h
parenta6f87d8c282ba94b0308898be052d1ac956d0ea9 (diff)
downloadperl-1404b48744cfa915e3f54775feb4e9b6c10f3b91.tar.gz
Fix clang "incompatible operand types" error in ternary expressions.
Diffstat (limited to 'gv.h')
-rw-r--r--gv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gv.h b/gv.h
index be4290dce4..7e412e56e8 100644
--- a/gv.h
+++ b/gv.h
@@ -49,7 +49,7 @@ struct gp {
assert(!SvVALID(_gvname_hek)); \
&(GvXPVGV(_gvname_hek)->xiv_u.xivu_namehek); \
}))
-# define GvNAME_get(gv) ({ assert(GvNAME_HEK(gv)); HEK_KEY(GvNAME_HEK(gv)); })
+# define GvNAME_get(gv) ({ assert(GvNAME_HEK(gv)); (char *)HEK_KEY(GvNAME_HEK(gv)); })
# define GvNAMELEN_get(gv) ({ assert(GvNAME_HEK(gv)); HEK_LEN(GvNAME_HEK(gv)); })
#else
# define GvGP(gv) ((gv)->sv_u.svu_gp)