mruby-enumerator: add parentheses to block.call

added parentheses to block.call calls where the return value is used.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-12-04 19:53:17 +09:00
parent 171ad3fb4f
commit 0d7903694c
@@ -175,7 +175,7 @@ class Enumerator
n = offset - 1
__enumerator_block_call do |*i|
n += 1
block.call i.__svalue, n
block.call(i.__svalue, n)
end
end
@@ -224,7 +224,7 @@ class Enumerator
return to_enum(:with_object, object) unless block
__enumerator_block_call do |i|
block.call [i,object]
block.call([i,object])
end
object
end