Hacker News new | ask | show | jobs
by lysium 4790 days ago
Why is length stored with a signed integer in the first place?
1 comments

It's (mis)using off_t, which allows for negative offsets (for obvious reasons). You also don't need signed integers to have integer overflows.