summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-07 04:14:25 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-07 04:14:25 +0000
commit361edea73d9051ef50c8f7156c93776367fe9913 (patch)
tree0a378f4c89c8db6fb7aede10ec7411f4fd377643
parent8dedf08b528586b2fe9559103f34dad92389255e (diff)
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
-rw-r--r--vm_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index ff5ff90..3104d38 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -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;
}