diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-21 16:31:26 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-22 00:19:55 +0900 |
commit | 74c6662af5d9748baff7c32e8f0baf7996dd898e (patch) | |
tree | afdd921e0e957c0dc988f8be931e4bd2010b59e4 /ext/digest/sha2 | |
parent | c030cec7cac3bacd230b87c9610bc67d8b89ab26 (diff) | |
download | ruby-74c6662af5d9748baff7c32e8f0baf7996dd898e.tar.gz |
Hoisted out rb_digest_namespace
Diffstat (limited to 'ext/digest/sha2')
-rw-r--r-- | ext/digest/sha2/sha2init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/digest/sha2/sha2init.c b/ext/digest/sha2/sha2init.c index 9fd8ece7fe..99450bb29e 100644 --- a/ext/digest/sha2/sha2init.c +++ b/ext/digest/sha2/sha2init.c @@ -42,11 +42,9 @@ Init_sha2(void) FOREACH_BITLEN(DECLARE_ALGO_CLASS) - rb_require("digest"); - id_metadata = rb_intern_const("metadata"); - mDigest = rb_path2class("Digest"); + mDigest = rb_digest_namespace(); cDigest_Base = rb_path2class("Digest::Base"); #define DEFINE_ALGO_CLASS(bitlen) \ |