aboutsummaryrefslogtreecommitdiffstats
path: root/method.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-19 07:54:04 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-19 07:54:04 +0000
commit47067b32eabbe61c65e46a3be0c242cc1dfc4b0b (patch)
tree5be74959e0d32de34bc2a7a562beb99082ff43dd /method.h
parentf9be5c3e9a9b59607857daf0fb00df5601519b61 (diff)
downloadruby-47067b32eabbe61c65e46a3be0c242cc1dfc4b0b.tar.gz
specify unsigned (fix r58784).
* method.h (rb_method_definition_t#type): specify unsigned explicitly. Some compilers (includes VC) returns negative value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'method.h')
-rw-r--r--method.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/method.h b/method.h
index 14bbc8c001..57a8602566 100644
--- a/method.h
+++ b/method.h
@@ -151,7 +151,7 @@ enum method_optimized_type {
};
PACKED_STRUCT_UNALIGNED(struct rb_method_definition_struct {
- rb_method_type_t type : 4; /* method type */
+ unsigned int type : 4; /* method type */
int alias_count : 28;
int complemented_count : 28;