summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorcharliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-27 12:09:33 +0000
committercharliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-27 12:09:33 +0000
commit22691e7f6b88a58f9d874b07ce09e2f82bfd112f (patch)
tree7124d09db926cd8544fbf92ebf51b3337ac200f7 /vm_core.h
parentcd453f16b42ea9b68993631b27773165b24ee9b2 (diff)
* vm_core.h (VM_DEFINECLASS_TYPE): explicit cast to enum type to avoid 64->32
shorten warning git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 8a4dd239a1..6ecbd70289 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -620,7 +620,7 @@ typedef enum {
VM_DEFINECLASS_TYPE_MASK = 0x07,
} rb_vm_defineclass_type_t;
-#define VM_DEFINECLASS_TYPE(x) ((x) & VM_DEFINECLASS_TYPE_MASK)
+#define VM_DEFINECLASS_TYPE(x) ((rb_vm_defineclass_type_t)(x) & VM_DEFINECLASS_TYPE_MASK)
#define VM_DEFINECLASS_FLAG_SCOPED 0x08
#define VM_DEFINECLASS_FLAG_HAS_SUPERCLASS 0x10
#define VM_DEFINECLASS_SCOPED_P(x) ((x) & VM_DEFINECLASS_FLAG_SCOPED)