Fix -Wincompatible-pointer-types warning

This commit is contained in:
Michael Steinert 2018-06-30 23:27:54 -05:00
parent e9afe4b6cf
commit 2be2a08750

View file

@ -21,9 +21,8 @@ void str_array_free(str_array *l) {
}
bool str_array_append(str_array * l, const char * token, unsigned int len) {
R3_VECTOR(r3_iovec_t) *tks = &l->tokens;
r3_vector_reserve(NULL, tks, tks->size + 1);
r3_iovec_t *temp = tks->entries + tks->size++;
r3_vector_reserve(NULL, &l->tokens, l->tokens.size + 1);
r3_iovec_t *temp = l->tokens.entries + l->tokens.size++;
memset(temp, 0, sizeof(*temp));
temp->base = token;
temp->len = len;