fixed bytearray macros
Minclude/cutils/byte_array.h
| @@ -50,8 +50,8 @@ HEDLEY_NON_NULL(3) | |||
|---|---|---|---|
| 50 | 50 | size_t* bytearray_find(const Bytearray* haystack, const void* needle, int (*cmp)(const void*, const void*)); | |
| 51 | 51 | ||
| 52 | 52 | #define new_bytearray(element_size) bytearray_with_capacity(BYTEARRAY_DEFAULT_SIZE, element_size) | |
| 53 | - | #define bytearray_pop(bytearray, retptr) bytearray_pop_at(bytearray, ((Vector*)vector)->length-1, retptr) | |
| 54 | - | #define bytearray_push(bytearray, item) bytearray_insert(bytearray, ((Vector*)vector)->length, item) | |
| 53 | + | #define bytearray_pop(bytearray, retptr) bytearray_pop_at(bytearray, ((Bytearray*)bytearray)->length-1, retptr) | |
| 54 | + | #define bytearray_push(bytearray, item) bytearray_insert(bytearray, ((Bytearray*)bytearray)->length, item) | |
| 55 | 55 | ||
| 56 | 56 | #endif /* CUTILS_BYTE_ARRAY_H */ | |
| 57 | 57 | ||