1
1
Fork 1
mirror of https://github.com/oddlama/nixos-extra-modules.git synced 2025-10-11 06:10:39 +02:00

chore: fix statix and deadnix warnings

This commit is contained in:
Patrick 2025-04-15 11:29:18 +02:00
parent fb68031848
commit fda0b800e1
No known key found for this signature in database
GPG key ID: 451F95EFB8BECD0F
2 changed files with 8 additions and 36 deletions

View file

@ -119,7 +119,7 @@ let
negate = b < 0;
mask = if a == 63 then intmax else (builtins.elemAt lut a) - 1;
round_down = negate && (builtins.bitAnd mask b != 0);
result = (b / 2 / (builtins.elemAt lut (a - 1)));
result = b / 2 / (builtins.elemAt lut (a - 1));
in
if round_down then result - 1 else result;
in