fix: set correct default value for max search

This commit is contained in:
2025-11-16 09:36:30 +01:00
parent a8fbfabbcc
commit 331fd4d93a

View File

@@ -4,7 +4,7 @@ fn max_of(values: Vec<u16>) -> Result<Outcome, FailedTo> {
if values.is_empty() {
return Err(FailedTo::ProcessInput);
}
let ret = Ok(Outcome::Scalar(u16::MAX));
let ret = Ok(Outcome::Scalar(u16::MIN));
ret.and_then(|_| {
values
.iter()