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 | c3327d12104bb86841fb15c65a7cc43cf34e4c8d (patch) | |
tree | 0a378f4c89c8db6fb7aede10ec7411f4fd377643 /vm_core.h | |
parent | 5aae913b557664f2cd1d3a25debf94fc9f4dbd80 (diff) | |
download | ruby-c3327d12104bb86841fb15c65a7cc43cf34e4c8d.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; } |