summaryrefslogtreecommitdiff
path: root/method.h
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-22 04:04:06 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-22 04:04:06 (GMT)
commit84fd997fe6460e5fcccbae557e95068cf94cd55d (patch)
tree033171b77cdbf50683e12d0f0d54edc46413be4e /method.h
parentd4313df0851e85a4bd3343b44932195953cbd6bf (diff)
Avoid compiler depend error
ref r64492 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'method.h')
-rw-r--r--method.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/method.h b/method.h
index 9e0f5e7..f6222ca 100644
--- a/method.h
+++ b/method.h
@@ -33,7 +33,7 @@ typedef enum {
} rb_method_visibility_t;
typedef struct rb_scope_visi_struct {
- BITFIELD(rb_method_visibility_t) method_visi : 3;
+ BITFIELD(rb_method_visibility_t, method_visi, 3);
unsigned int module_func : 1;
} rb_scope_visibility_t;
@@ -155,7 +155,7 @@ enum method_optimized_type {
};
PACKED_STRUCT_UNALIGNED(struct rb_method_definition_struct {
- BITFIELD(rb_method_type_t) type : VM_METHOD_TYPE_MINIMUM_BITS;
+ BITFIELD(rb_method_type_t, type, VM_METHOD_TYPE_MINIMUM_BITS);
int alias_count : 28;
int complemented_count : 28;