mrubyを超漢字で動作させる
修订版 | c138d7ef0a2365fd7da6a6374f9fa607633f07d5 (tree) |
---|---|
时间 | 2012-04-21 00:51:20 |
作者 | Yukihiro Matsumoto <matz@ruby...> |
Commiter | Yukihiro Matsumoto |
use %zd for size_t argument
@@ -140,7 +140,7 @@ make_cdump_irep(mrb_state *mrb, int irep_no, FILE *f) | ||
140 | 140 | } |
141 | 141 | } |
142 | 142 | memset(buf, 0, buf_len); |
143 | - SOURCE_CODE(" irep->pool[%d] = mrb_str_new(mrb, \"%s\", %d);", n, str_to_format(irep->pool[n], buf), RSTRING_LEN(irep->pool[n])); break; | |
143 | + SOURCE_CODE(" irep->pool[%d] = mrb_str_new(mrb, \"%s\", %zd);", n, str_to_format(irep->pool[n], buf), RSTRING_LEN(irep->pool[n])); break; | |
144 | 144 | /* TODO MRB_TT_REGEX */ |
145 | 145 | default: break; |
146 | 146 | } |