Skip to content

Commit d30145b

Browse files
committed
Avoid warning for RTYPEDDATA_P()
* warning: comparison between pointer and integer ('VALUE' (aka 'void *') and 'int') [-Wpointer-integer-compare] * Shown when installing google-protobuf.
1 parent 49f199a commit d30145b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/cext/include/ruby/ruby.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,11 @@ struct rb_data_type_struct {
11471147
struct RTypedData {
11481148
struct RBasic basic;
11491149
const rb_data_type_t *type;
1150+
#ifdef TRUFFLERUBY
1151+
int typed_flag; /* 1 or not */
1152+
#else
11501153
VALUE typed_flag; /* 1 or not */
1154+
#endif
11511155
void *data;
11521156
};
11531157

0 commit comments

Comments
 (0)