Add pointer cast to pacify warnings.

parent 9a76a0bd
...@@ -132,12 +132,12 @@ resize_capa(mrb_state *mrb, struct RString *s, size_t capacity) ...@@ -132,12 +132,12 @@ resize_capa(mrb_state *mrb, struct RString *s, size_t capacity)
RSTR_UNSET_EMBED_FLAG(s); RSTR_UNSET_EMBED_FLAG(s);
s->as.heap.ptr = tmp; s->as.heap.ptr = tmp;
s->as.heap.len = len; s->as.heap.len = len;
s->as.heap.aux.capa = capacity; s->as.heap.aux.capa = (mrb_int)capacity;
} }
} }
else { else {
s->as.heap.ptr = (char *)mrb_realloc(mrb, RSTR_PTR(s), capacity+1); s->as.heap.ptr = (char*)mrb_realloc(mrb, RSTR_PTR(s), capacity+1);
s->as.heap.aux.capa = capacity; s->as.heap.aux.capa = (mrb_int)capacity;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment