You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
comptime integers never wrap. They have unlimited bits. You need to cast your literals to a specific number of bits before doing a wraparound operation.
I try this in online tool:
and it gives me error:
/home/runner/.code.tio:6:22: error: integer value 400 cannot be implicitly casted to type 'u8'
I expected wraparounds to work at compile time too.
The text was updated successfully, but these errors were encountered: