chanmgr padding: Fix low vs high comparison
Whoops. This bug was completely masked by the fact that we don't actually enable padding yet.
This commit is contained in:
parent
0b140effc6
commit
1688b5ef2a
|
@ -418,9 +418,8 @@ fn padding_parameters(
|
||||||
|index: usize| nf_ito[index].try_map(|bounded| bounded.get().try_into());
|
|index: usize| nf_ito[index].try_map(|bounded| bounded.get().try_into());
|
||||||
let low = get_timing_param(0).map_err(|_| "low value arithmetic overflow?!")?;
|
let low = get_timing_param(0).map_err(|_| "low value arithmetic overflow?!")?;
|
||||||
let high = get_timing_param(1).map_err(|_| "high value arithmetic overflow?!")?;
|
let high = get_timing_param(1).map_err(|_| "high value arithmetic overflow?!")?;
|
||||||
|
if low > high {
|
||||||
if high > low {
|
return Err("low > high");
|
||||||
return Err("high > low");
|
|
||||||
}
|
}
|
||||||
p.low_ms(low);
|
p.low_ms(low);
|
||||||
p.high_ms(high);
|
p.high_ms(high);
|
||||||
|
|
Loading…
Reference in New Issue