mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-19 20:14:19 +02:00
nit
"consistency"
This commit is contained in:
parent
acad074c59
commit
5c31b8bcb8
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ pub const Input = enum {
|
|||
const selfNum = @intFromEnum(self.*);
|
||||
if (reverse) {
|
||||
if (wrap) {
|
||||
self.* = @as(Input, @enumFromInt(@intFromEnum(self.*) -% 1));
|
||||
self.* = @as(Input, @enumFromInt(selfNum -% 1));
|
||||
} else if (selfNum != 0) {
|
||||
self.* = @as(Input, @enumFromInt(std.math.clamp(selfNum - 1, 0, len)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue