nac3ore: default parameter of type int64 should be specified explicitly

This commit is contained in:
ychenfo 2021-11-20 04:59:40 +08:00
parent 6b059fa288
commit e75ec35687
1 changed files with 4 additions and 1 deletions

View File

@ -354,7 +354,10 @@ impl TopLevelComposer {
if let Ok(v) = v.try_into() { if let Ok(v) = v.try_into() {
Ok(SymbolValue::I32(v)) Ok(SymbolValue::I32(v))
} else { } 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)), Constant::Float(v) => Ok(SymbolValue::Double(*v)),