Permalink
Browse files

Add pointer cast to pacify warnings.

  • Loading branch information...
matz committed Jan 6, 2017
1 parent 9a76a0b commit c6a11725923090278bb4941579751650d9aaebce
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/string.c
View
@@ -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;
}
}

0 comments on commit c6a1172

Please sign in to comment.