ext/i18nema/i18nema.c in i18nema-0.0.1 vs ext/i18nema/i18nema.c in i18nema-0.0.2
- old
+ new
@@ -72,10 +72,10 @@
hash_to_rhash(i_object_t *hash)
{
i_key_value_t *handle = hash->data.hash;
VALUE result = rb_hash_new();
for (; handle != NULL; handle = handle->hh.next)
- rb_hash_aset(result, rb_str_new2(handle->key), i_object_to_robject(handle->value));
+ rb_hash_aset(result, ID2SYM(rb_intern(handle->key)), i_object_to_robject(handle->value));
return result;
}
static i_object_t*
root_object_get(VALUE self)