diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2013-03-14 19:09:55 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2013-03-14 19:09:55 +0900 |
| commit | 93e9174c57709e6867459c55fb88149234483c1d (patch) | |
| tree | 047d8012baa268086ce1bc99fbb9308ed8754980 /src/variable.c | |
| parent | b75805b15ec46cbcd7561ffd571e2c892de96f25 (diff) | |
| download | mruby-93e9174c57709e6867459c55fb88149234483c1d.tar.gz mruby-93e9174c57709e6867459c55fb88149234483c1d.zip | |
symbol length make size_t from mrb_int; cancel #993 monaka/pr-cleanup-symbol.c-20130312
Diffstat (limited to 'src/variable.c')
| -rw-r--r-- | src/variable.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/variable.c b/src/variable.c index 4202981a4..850999042 100644 --- a/src/variable.c +++ b/src/variable.c @@ -520,7 +520,7 @@ inspect_i(mrb_state *mrb, mrb_sym sym, mrb_value v, void *p) { mrb_value str = *(mrb_value*)p; const char *s; - int len; + size_t len; /* need not to show internal data */ if (RSTRING_PTR(str)[0] == '-') { /* first element */ @@ -587,7 +587,7 @@ iv_i(mrb_state *mrb, mrb_sym sym, mrb_value v, void *p) { mrb_value ary; const char* s; - int len; + size_t len; ary = *(mrb_value*)p; s = mrb_sym2name_len(mrb, sym, &len); @@ -631,7 +631,7 @@ cv_i(mrb_state *mrb, mrb_sym sym, mrb_value v, void *p) { mrb_value ary; const char* s; - int len; + size_t len; ary = *(mrb_value*)p; s = mrb_sym2name_len(mrb, sym, &len); |
