• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

mrubyを超漢字で動作させる


Commit MetaInfo

修訂77aefa1d03588e9219dd69ace7a428d18db28a08 (tree)
時間2014-07-03 22:56:15
作者take_cheeze <takechi101010@gmai...>
Commitertake_cheeze

Log Message

Always return non-NULL in mrb_hash_tbl.

Change Summary

差異

--- a/src/hash.c
+++ b/src/hash.c
@@ -265,7 +265,7 @@ mrb_hash_tbl(mrb_state *mrb, mrb_value hash)
265265 khash_t(ht) *h = RHASH_TBL(hash);
266266
267267 if (!h) {
268- RHASH_TBL(hash) = kh_init(ht, mrb);
268+ return RHASH_TBL(hash) = kh_init(ht, mrb);
269269 }
270270 return h;
271271 }