From bffc5bb8f1c3d3adaf9a9b90f358777c49dd7480 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 17 Oct 2024 11:32:40 -0700 Subject: [PATCH] comment --- src/scheduler.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scheduler.rs b/src/scheduler.rs index 81611f2..c5b890c 100644 --- a/src/scheduler.rs +++ b/src/scheduler.rs @@ -69,6 +69,7 @@ pub fn set_globals(lua:&mlua::Lua,globals:&mlua::Table)->Result<(),mlua::Error>{ let delay=f.max(0.0)*60.0; match delay.classify(){ std::num::FpCategory::Nan=>Err(mlua::Error::runtime("NaN"))?, + // cases where the number is too large to schedule std::num::FpCategory::Infinite=>return Ok(()), std::num::FpCategory::Normal=>if (u64::MAX as f64)