commit | 80018c885a8f8c2ae32b05c4b2bcd7ae164b04fe | [log] [tgz] |
---|---|---|
author | Hans Boehm <hboehm@google.com> | Sun Aug 02 16:59:07 2015 -0700 |
committer | Hans Boehm <hboehm@google.com> | Mon Aug 03 15:55:38 2015 -0700 |
tree | bcf873cd9a70aa06f34ffc51aa0231dab89b92b7 | |
parent | 9fd976e427c1c6d7242bb84787c01009e3261fdc [diff] |
Properly reserve display space for non-digits Bug: 22882700 We did not correctly calculate the extra space we might need to add a decimal point to a scientific notation results. We also incorrectly assumed that minus signs are the same width as a digit. As a workaround we now reserve extra space for the possible non-digit characters to ensure that a result is never inadvertently truncated. Change-Id: I79b499121703cd51bbbf3e1d85b2285a2dd5e025