Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The macro: #define access(ptr, offset) ((void*)((char*)ptr + (offset * size)))
- The call: access(out_buffer, item_counter0 + item_counter1)
- Spot the error!
- The expansion: ((void*)((char*)out_buffer + (item_counter0 + item_counter1 * size)))
- "(item_counter0 + item_counter1 * size)" - Operator precedence!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement