WIP: add missing default case
This commit is contained in:
parent
ce18267ed6
commit
1a0e6cd0b4
1 changed files with 2 additions and 0 deletions
|
|
@ -60,6 +60,8 @@ fn updatePosition(
|
|||
var mod = @mod(signed_position, signed_upper_bound);
|
||||
if (signed_position < 0) mod += 1;
|
||||
position.* = @intCast(mod);
|
||||
} else {
|
||||
position.* = @intCast(signed_position);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue