Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dn3500
· 4mo ago · 0 comments
Your test is backwards. I would write it like this:
if (size > a->limit - a->cursor) return NULL;
Comments
[–]
CodesInChaos
4mo ago
You're right. Fixed.