summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2013-03-04 09:39:04 +0900
committerYukihiro Matz Matsumoto <[email protected]>2013-03-04 09:39:04 +0900
commit7e910bd4c2623775c00eb0fa052efc9e62d7b115 (patch)
tree38a857d0a8d907d1e4237370a94751880296247b
parent844f6eb62515b523d6fcc40b34802467b51e0ac9 (diff)
downloadmruby-7e910bd4c2623775c00eb0fa052efc9e62d7b115.tar.gz
mruby-7e910bd4c2623775c00eb0fa052efc9e62d7b115.zip
use mrb_int for RString len
-rw-r--r--include/mruby/string.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mruby/string.h b/include/mruby/string.h
index 353d8cefc..3f661a742 100644
--- a/include/mruby/string.h
+++ b/include/mruby/string.h
@@ -24,14 +24,14 @@ extern const char mrb_digitmap[];
typedef struct mrb_shared_string {
int refcnt;
char *ptr;
- int len;
+ mrb_int len;
} mrb_shared_string;
struct RString {
MRB_OBJECT_HEADER;
- int len;
+ mrb_int len;
union {
- int capa;
+ mrb_int capa;
mrb_shared_string *shared;
} aux;
char *ptr;