summaryrefslogtreecommitdiff
path: root/ext/digest/sha1/sha1init.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/sha1/sha1init.c')
-rw-r--r--ext/digest/sha1/sha1init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/digest/sha1/sha1init.c b/ext/digest/sha1/sha1init.c
index 56ae0fa..bb4af1c 100644
--- a/ext/digest/sha1/sha1init.c
+++ b/ext/digest/sha1/sha1init.c
@@ -40,6 +40,6 @@ Init_sha1(void)
#undef RUBY_UNTYPED_DATA_WARNING
#define RUBY_UNTYPED_DATA_WARNING 0
- rb_ivar_set(cDigest_SHA1, rb_intern("metadata"),
- Data_Wrap_Struct(0, 0, 0, (void *)&sha1));
+ rb_iv_set(cDigest_SHA1, "metadata",
+ Data_Wrap_Struct(0, 0, 0, (void *)&sha1));
}