vec: switch to pointer to u8 instead of void pointer for vec_data
No issues with indexing this by byte, right?
This commit is contained in:
@@ -46,7 +46,7 @@ void vec_free(vec_t *vec)
|
||||
memset(vec, 0, sizeof(*vec));
|
||||
}
|
||||
|
||||
void *vec_data(vec_t *vec)
|
||||
u8 *vec_data(vec_t *vec)
|
||||
{
|
||||
return vec->not_inlined ? vec->ptr : vec->inlined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user