[instancer.solver] Add assertion

This commit is contained in:
Behdad Esfahbod 2022-08-09 21:19:02 -06:00
parent aabced171e
commit b54ac734cc

View File

@ -174,6 +174,7 @@ def _solve(tent, axisLimit, negative=False):
if not negative and axisDef + (axisMax - axisDef) * MAX_F2DOT14 < upper:
# we clamp +2.0 to the max F2Dot14 (~1.99994) for convenience
upper = axisDef + (axisMax - axisDef) * MAX_F2DOT14
assert peak < upper
# Special-case if peak is at axisMax.
if axisMax == peak: