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 | 9fc370197a53437e6a00f6f9de2b16821eee445d (patch) | |
tree | 671b7c0fbcf4875e78fa7cc07a6df7cbdec13e4e /vm_core.h | |
parent | fec97f90d5f7da2401f2bc2045d7fabe9c672bdf (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
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); |