summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-02 01:47:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-02 01:47:21 +0000
commit9fc370197a53437e6a00f6f9de2b16821eee445d (patch)
tree671b7c0fbcf4875e78fa7cc07a6df7cbdec13e4e
parentfec97f90d5f7da2401f2bc2045d7fabe9c672bdf (diff)
vm_core.h: suppress warnings
* vm_core.h (VM_ENV_FLAGS, VM_FRAME_TYPE): return unsigned to suppress sign-compare warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--vm_core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_core.h b/vm_core.h
index be16327..7a6f398 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -1016,7 +1016,7 @@ VM_ENV_FLAGS_UNSET(const VALUE *ep, VALUE flag)
VM_FORCE_WRITE_SPECIAL_CONST(&ep[VM_ENV_DATA_INDEX_FLAGS], flags & ~flag);
}
-static inline long
+static inline unsigned long
VM_ENV_FLAGS(const VALUE *ep, long flag)
{
VALUE flags = ep[VM_ENV_DATA_INDEX_FLAGS];
@@ -1024,7 +1024,7 @@ VM_ENV_FLAGS(const VALUE *ep, long flag)
return flags & flag;
}
-static inline long
+static inline unsigned long
VM_FRAME_TYPE(const rb_control_frame_t *cfp)
{
return VM_ENV_FLAGS(cfp->ep, VM_FRAME_MAGIC_MASK);