• 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

修訂ed5c13bc1108ffffc47ae1aa5ed088d0f4ddc596 (tree)
時間2014-07-02 07:23:23
作者David Turnbull <dturnbull@gmai...>
CommiterDavid Turnbull

Log Message

Fix MRB_WORD_BOXING by correctly telling GC which mrb_value types are immediate.

Change Summary

差異

--- a/include/mruby/value.h
+++ b/include/mruby/value.h
@@ -398,7 +398,7 @@ struct RObject {
398398 #define mrb_obj_ptr(v) ((struct RObject*)(mrb_ptr(v)))
399399 /* obsolete macro mrb_object; will be removed soon */
400400 #define mrb_object(o) mrb_obj_ptr(o)
401-#define mrb_immediate_p(x) (mrb_type(x) <= MRB_TT_CPTR)
401+#define mrb_immediate_p(x) (mrb_type(x) < MRB_TT_HAS_BASIC)
402402 #define mrb_special_const_p(x) mrb_immediate_p(x)
403403
404404 struct RFiber {