mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-array-ext: add parentheses to block.call
added parentheses to block.call where the return value is used. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user