diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-26 10:43:32 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-26 10:43:32 +0900 |
| commit | 0584551eb971f4f78820d3038cf8e7ba62a59374 (patch) | |
| tree | 44269e516013e81be409691582d21640e415b68a /mrbgems/mruby-string-utf8/src/string.c | |
| parent | 5bbbfd8ead26f4cbfd99ed12bd2b723ae81518f0 (diff) | |
| download | mruby-0584551eb971f4f78820d3038cf8e7ba62a59374.tar.gz mruby-0584551eb971f4f78820d3038cf8e7ba62a59374.zip | |
mruby-string-utf8: use mrb_int instead of size_t
Diffstat (limited to 'mrbgems/mruby-string-utf8/src/string.c')
| -rw-r--r-- | mrbgems/mruby-string-utf8/src/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-string-utf8/src/string.c b/mrbgems/mruby-string-utf8/src/string.c index 886a6999f..edda491fc 100644 --- a/mrbgems/mruby-string-utf8/src/string.c +++ b/mrbgems/mruby-string-utf8/src/string.c @@ -8,9 +8,9 @@ #define STR_EMBED_P(s) ((s)->flags & MRB_STR_EMBED) #define STR_EMBED_LEN(s)\ - (size_t)(((s)->flags & MRB_STR_EMBED_LEN_MASK) >> MRB_STR_EMBED_LEN_SHIFT) + (mrb_int)(((s)->flags & MRB_STR_EMBED_LEN_MASK) >> MRB_STR_EMBED_LEN_SHIFT) #define STR_PTR(s) ((STR_EMBED_P(s)) ? (s)->as.ary : (s)->as.heap.ptr) -#define STR_LEN(s) ((STR_EMBED_P(s)) ? STR_EMBED_LEN(s) : (size_t)(s)->as.heap.len) +#define STR_LEN(s) ((STR_EMBED_P(s)) ? STR_EMBED_LEN(s) : (mrb_int)(s)->as.heap.len) static const char utf8len_codepage[256] = { |
