Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1526)

Unified Diff: runtime/lib/integers.dart

Issue 821123003: Simplify double to bigint conversion. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/lib/integers.dart
===================================================================
--- runtime/lib/integers.dart (revision 42832)
+++ runtime/lib/integers.dart (working copy)
@@ -200,7 +200,7 @@
int toInt() { return this; }
double toDouble() { return new _Double.fromInteger(this); }
- _Bigint _toBigint() { return new _Bigint()._setInt(this); }
+ _Bigint _toBigint() { return new _Bigint._fromInt(this); }
num _toBigintOrDouble() { return _toBigint(); }
String toStringAsFixed(int fractionDigits) {
« runtime/lib/bigint.dart ('K') | « runtime/lib/double.cc ('k') | runtime/vm/exceptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698