diff --git a/nac3core/src/toplevel/helper.rs b/nac3core/src/toplevel/helper.rs index e4796188..397a10dd 100644 --- a/nac3core/src/toplevel/helper.rs +++ b/nac3core/src/toplevel/helper.rs @@ -354,7 +354,10 @@ impl TopLevelComposer { if let Ok(v) = v.try_into() { Ok(SymbolValue::I32(v)) } else { - Ok(SymbolValue::I64(v.try_into().unwrap())) + Err(format!( + "int64 default parameter should be specified explicitly by `int64()` at {}", + loc + )) } } Constant::Float(v) => Ok(SymbolValue::Double(*v)),