Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
mark-r
9y ago
0 comments
Save
Share
If you do that then the size() function becomes a problem. The original implementation relies on unsigned integer wrap-around to give the proper result when write < read.
0 comments
1 comments · 1 top-level
top
newest
oldest
caf
9y ago
That is fairly easy to fix, though. Add N to the size value you get until its non-negative.
j
/
k
navigate · click thread line to collapse