fc27a2c9d4
* double.compareTo(int) is fixed to handle integers which are not precisely representable as doubles. * int.compareTo(double) is fixed to properly handle doubles which are clamped when converted to integers (with Dart 2.0 fixed-size integers). * Test for num.compareTo is updated for fixed-size integers; more corner cases added. Closes https://github.com/dart-lang/sdk/issues/31917 Change-Id: I8e98c3627f032082ab6a397713dece436585afd1 Reviewed-on: https://dart-review.googlesource.com/35004 Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Reviewed-by: Régis Crelier <regis@google.com>