Chromium Code Reviews
DescriptionFix constant evaluation of division.
To be consistent with the VM and dart2js implementations, the
analyzer's constant evaluation of a / b should always yield a double,
even if the arguments are ints. For example, 300 / 2 = 150.0 and 301
/ 2 = 150.5.
BUG=dartbug.com/22937
R=danrubel@google.com
Committed: https://code.google.com/p/dart/source/detail?r=44645
Patch Set 1 #
Total comments: 2
Messages
Total messages: 5 (1 generated)
|
||||||||||||||||||||||||||||