Fix -Wincompatible-pointer-types warning
This commit is contained in:
parent
e9afe4b6cf
commit
2be2a08750
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue