Chromium Code Reviews
DescriptionFix an assertion failure in InputType::applyStep()
If stepBase is extremely larger than step or maximum, the old code produced
alignedMaximum larger than maximum(). This CL fixes it.
- The core logic is moved to StepRange class to improve testability
- Move the stream printer for Decimal because it is used in DCHECK_LE().
BUG=617809
Committed: https://crrev.com/ee4915d796448f4024de2c943a52b007021ead03
Cr-Commit-Position: refs/heads/master@{#399563}
Patch Set 1 : #
Messages
Total messages: 16 (8 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||