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

Unified Diff: client/samples/total/src/DateTimeUtils.dart

Issue 8786002: Check that interface constructors and default class constructors are compatible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Check that types of constructors parameters are identical Created 9 years 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: client/samples/total/src/DateTimeUtils.dart
diff --git a/client/samples/total/src/DateTimeUtils.dart b/client/samples/total/src/DateTimeUtils.dart
index f67a93318b3a315a5ac14aa97fdfe3456ec32399..6bed33bb2a6a89b5e8747217804898a606afc358 100644
--- a/client/samples/total/src/DateTimeUtils.dart
+++ b/client/samples/total/src/DateTimeUtils.dart
@@ -26,7 +26,7 @@ class DateUtils {
// Return a Date object corresponding to the given number of days after 1899-12-30.
static Date getDateTime(double daysSince18991230) {
double daysSinceEpoch = daysSince18991230 - DAYS_FROM_1900_TO_1970;
- double millisSinceEpoch = daysSinceEpoch * MILLISECONDS_PER_DAY;
+ int millisSinceEpoch = (daysSinceEpoch * MILLISECONDS_PER_DAY).toInt();
return new Date.fromEpoch(millisSinceEpoch, const TimeZone.utc());
}

Powered by Google App Engine
This is Rietveld 408576698