Skip to content
Discussion options

You must be logged in to vote

I guess it's this project?

#define ok_alloc(decoder, size) reinterpret_cast<uint8_t*>((decoder)->allocator.alloc((decoder)->allocator_user_data, (size)))

This solves this problem, but you will get more errors. You have to cast the result of every ok_alloc() occurrence to the expected result type, if it is not uint8_t*. C is not that permissive and can assign a void* to any pointer variable, but C++ is.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@rsta2
Comment options

@wmjenkinson
Comment options

@rsta2
Comment options

Answer selected by wmjenkinson
@wmjenkinson
Comment options

@rsta2
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants