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

Unified Diff: frog/lib/date_implementation.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 | « no previous file | lib/compiler/implementation/lib/mockimpl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/lib/date_implementation.dart
diff --git a/frog/lib/date_implementation.dart b/frog/lib/date_implementation.dart
index 817881d69e5679d9f663bde057a8da68b6ddf325..70747d573f7b0628efef723f583a11abca1206f3 100644
--- a/frog/lib/date_implementation.dart
+++ b/frog/lib/date_implementation.dart
@@ -77,7 +77,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 | « no previous file | lib/compiler/implementation/lib/mockimpl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698