summaryrefslogtreecommitdiff
path: root/ext/digest/sha2/lib
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/sha2/lib')
-rw-r--r--ext/digest/sha2/lib/digest/sha2.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/digest/sha2/lib/digest/sha2.rb b/ext/digest/sha2/lib/digest/sha2.rb
index 683b9904a36..52dd639f9be 100644
--- a/ext/digest/sha2/lib/digest/sha2.rb
+++ b/ext/digest/sha2/lib/digest/sha2.rb
@@ -62,7 +62,7 @@ module Digest
# :nodoc:
def initialize_copy(other)
- @sha2 = @sha2.clone
+ @sha2 = other.instance_eval { @sha2.clone }
end
# :nodoc: