Y
Hacker News
new
|
ask
|
show
|
jobs
by
dn3500
6 days ago
Your test is backwards. I would write it like this:
if (size > a->limit - a->cursor) return NULL;
1 comments
CodesInChaos
6 days ago
You're right. Fixed.
link