logoalt Hacker News

renoxtoday at 6:02 AM0 repliesview on HN

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.