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)