diff options
author | George Greer <perl@greerga.m-l.org> | 2010-05-26 21:12:37 -0400 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2010-05-27 07:19:04 +0200 |
commit | 1404b48744cfa915e3f54775feb4e9b6c10f3b91 (patch) | |
tree | 628a7d2198ca2b45ed89479ab534de39d6683cd6 /gv.h | |
parent | a6f87d8c282ba94b0308898be052d1ac956d0ea9 (diff) | |
download | perl-1404b48744cfa915e3f54775feb4e9b6c10f3b91.tar.gz |
Fix clang "incompatible operand types" error in ternary expressions.
Diffstat (limited to 'gv.h')
-rw-r--r-- | gv.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |