You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having looked at it again, as long as malloc returns a valid pointer, the assertion passes. I guess the only way this assertion would not work properly is if given size == 0, malloc returns a non-zero pointer. Not sure if that's something worth worrying about... is it?
ASSERT(size == 0 || result != NULL);
Won't this assertion fail when you try to allocate anything more than 0 bytes? Shouldn't it be ASSERT(size != 0 || result != NULL)?
If this is intentional, can you explain why?
The text was updated successfully, but these errors were encountered: