I've got the following code that pulls data from an ALAssetRepresentation
.
ALAssetRepresentation *representation = ...;
size_t size = [representation size]; // 'size' returns a long long
uint8_t *bytes = malloc(size);
When building for 32-bit devices on iOS, I get the following warning.
Blindly casting the long long
to a size_t
works, but I don't know what the "right" way to handle this situation is. Would love to know how to best handle it.