diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-07 04:14:25 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-07 04:14:25 +0000 |
commit | 361edea73d9051ef50c8f7156c93776367fe9913 (patch) | |
tree | 0a378f4c89c8db6fb7aede10ec7411f4fd377643 /vm_core.h | |
parent | 8dedf08b528586b2fe9559103f34dad92389255e (diff) | |
download | ruby-361edea73d9051ef50c8f7156c93776367fe9913.tar.gz |
remove compare with enum value.
* vm_core.h (vm_block_handler_verify): some compilers warn about comparison
with enum value and 0. Real assertion is in vm_block_handler_type() so
we only need to call vm_block_handler_type() and the value should be TRUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1271,7 +1271,7 @@ static inline int vm_block_handler_verify(VALUE block_handler) { VM_ASSERT(block_handler == VM_BLOCK_HANDLER_NONE || - vm_block_handler_type(block_handler) >= 0); + (vm_block_handler_type(block_handler), TRUE)); return 1; } |