From 2be2a087506ffe2c72ce5210552c4a137e37a77c Mon Sep 17 00:00:00 2001 From: Michael Steinert Date: Sat, 30 Jun 2018 23:27:54 -0500 Subject: [PATCH] Fix -Wincompatible-pointer-types warning --- src/token.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/token.c b/src/token.c index 77f8cb2..6f5e4d3 100644 --- a/src/token.c +++ b/src/token.c @@ -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;