From 361edea73d9051ef50c8f7156c93776367fe9913 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 7 Feb 2017 04:14:25 +0000 Subject: 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 --- vm_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index ff5ff90a56..3104d389b7 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; } -- cgit v1.2.3