From 171ad3fb4f43cdb1898096f7f49a2f85cac98cb5 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 4 Dec 2025 19:52:45 +0900 Subject: [PATCH] mruby-array-ext: add parentheses to block.call added parentheses to block.call where the return value is used. Co-authored-by: Claude --- mrbgems/mruby-array-ext/mrblib/array.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrbgems/mruby-array-ext/mrblib/array.rb b/mrbgems/mruby-array-ext/mrblib/array.rb index f1f5840e2..29a433341 100644 --- a/mrbgems/mruby-array-ext/mrblib/array.rb +++ b/mrbgems/mruby-array-ext/mrblib/array.rb @@ -318,7 +318,7 @@ class Array while low < high mid = ((low+high)/2).truncate - res = block.call self[mid] + res = block.call(self[mid]) case res when 0 # find-any mode: Found!