Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
mark-r
9y ago
0 comments
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
default
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