From f5a7b6aad206cfe1f2b590649be35f6abdab3431 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 2 Feb 2023 22:45:30 +0900 Subject: [PATCH] hash.rb: defer local variable initialization --- mrblib/hash.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrblib/hash.rb b/mrblib/hash.rb index bfec4c2a3..46758d8b7 100644 --- a/mrblib/hash.rb +++ b/mrblib/hash.rb @@ -181,9 +181,9 @@ class Hash # # ISO 15.2.13.4.22 def merge(*others, &block) - i=0; len=others.size h = self.dup return h.__merge(*others) unless block + i=0; len=others.size while i