Simplification of `compareWidths`.
Merge pull request #181 from ezequiel/comparewidth-fix

Simplification of `compareWidths`.