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

Unified Diff: lib/compiler/implementation/lib/mockimpl.dart

Issue 10382170: Convert double to integer and update status file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
« no previous file with comments | « frog/lib/date_implementation.dart ('k') | runtime/lib/date.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/lib/mockimpl.dart
diff --git a/lib/compiler/implementation/lib/mockimpl.dart b/lib/compiler/implementation/lib/mockimpl.dart
index 12393bac488c38f30415a075a5a33e7f6f7f43f6..11e8a81dad2476e45086b62774facb0af685bab1 100644
--- a/lib/compiler/implementation/lib/mockimpl.dart
+++ b/lib/compiler/implementation/lib/mockimpl.dart
@@ -251,7 +251,7 @@ class DateImplementation implements Date {
int minutes = parseIntOrZero(match[5]);
int seconds = parseIntOrZero(match[6]);
bool addOneMillisecond = false;
- int milliseconds = (parseDoubleOrZero(match[7]) * 1000).round();
+ int milliseconds = (parseDoubleOrZero(match[7]) * 1000).round().toInt();
if (milliseconds == 1000) {
addOneMillisecond = true;
milliseconds = 999;
« no previous file with comments | « frog/lib/date_implementation.dart ('k') | runtime/lib/date.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698