summaryrefslogtreecommitdiff
path: root/src/solar.rs
diff options
context:
space:
mode:
authoru <@>2026-03-15 18:48:01 +0200
committeru <@>2026-03-15 18:48:01 +0200
commitd388771c92dd41c5c63efc2d190fd1ee2fa4bcda (patch)
treec6bd09af7311a5b196098e6762204646cb12058b /src/solar.rs
parent695f9dd642fcfd02134538013caab96268d3503e (diff)
a
Diffstat (limited to 'src/solar.rs')
-rw-r--r--src/solar.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/solar.rs b/src/solar.rs
index 37bf32b..b8e146b 100644
--- a/src/solar.rs
+++ b/src/solar.rs
@@ -168,7 +168,7 @@ where
{
let (a, to, zero) = (a.as_(), to.as_(), zero.as_());
let tmp = a + (to - zero);
- (tmp - to * isize::from(tmp >= to)) as usize
+ (tmp - to * isize::from(tmp >= to)).cast_unsigned()
}
#[inline(always)]