Y
Hacker News
new
|
ask
|
show
|
jobs
by
renox
54 days ago
Note that in Zig, unsigned integer have the sqle semantic qs integers on overflow (trap or wrap or UB). You also have operators providing wrapping. That is the correct solution.