• 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

修订版c138d7ef0a2365fd7da6a6374f9fa607633f07d5 (tree)
时间2012-04-21 00:51:20
作者Yukihiro Matsumoto <matz@ruby...>
CommiterYukihiro Matsumoto

Log Message

use %zd for size_t argument

更改概述

差异

--- a/src/cdump.c
+++ b/src/cdump.c
@@ -140,7 +140,7 @@ make_cdump_irep(mrb_state *mrb, int irep_no, FILE *f)
140140 }
141141 }
142142 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;
144144 /* TODO MRB_TT_REGEX */
145145 default: break;
146146 }