mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add pointer cast to pacify warnings.
This commit is contained in:
+3
-3
@@ -132,12 +132,12 @@ resize_capa(mrb_state *mrb, struct RString *s, size_t capacity)
|
||||
RSTR_UNSET_EMBED_FLAG(s);
|
||||
s->as.heap.ptr = tmp;
|
||||
s->as.heap.len = len;
|
||||
s->as.heap.aux.capa = capacity;
|
||||
s->as.heap.aux.capa = (mrb_int)capacity;
|
||||
}
|
||||
}
|
||||
else {
|
||||
s->as.heap.ptr = (char *)mrb_realloc(mrb, RSTR_PTR(s), capacity+1);
|
||||
s->as.heap.aux.capa = capacity;
|
||||
s->as.heap.ptr = (char*)mrb_realloc(mrb, RSTR_PTR(s), capacity+1);
|
||||
s->as.heap.aux.capa = (mrb_int)capacity;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user