diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-02 01:47:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-02 01:47:21 +0000 |
commit | c6f8771d04f330579579be63a2e7309d64e4a8a0 (patch) | |
tree | 671b7c0fbcf4875e78fa7cc07a6df7cbdec13e4e /vm_core.h | |
parent | 57e86e28d70d7bea7c50532a0a570219b138ab9a (diff) | |
download | ruby-c6f8771d04f330579579be63a2e7309d64e4a8a0.tar.gz |
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
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |