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

Unified Diff: runtime/lib/date.cc

Issue 9114054: Port a couple more stubs to x64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 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
« no previous file with comments | « no previous file | runtime/lib/integers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/date.cc
===================================================================
--- runtime/lib/date.cc (revision 3306)
+++ runtime/lib/date.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -38,10 +38,10 @@
// mktime takes the years since 1900.
// TODO(floitsch): Removing 1900 could underflow the intptr_t.
intptr_t year = smi_years.Value() - 1900;
- // TODO(floitsch): We don't handle the case yet where intptr_t and int have
+ // TODO(1143): We don't handle the case yet where intptr_t and int have
// different sizes.
- ASSERT(sizeof(year) <= sizeof(broken_down.year));
- broken_down.year = year;
+ // ASSERT(sizeof(year) <= sizeof(broken_down.year));
+ broken_down.year = static_cast<int>(year);
// libc months are 0-based (contrary to Dart' 1-based months).
broken_down.month = dart_month.Value() - 1;
broken_down.day = dart_day.Value();
« no previous file with comments | « no previous file | runtime/lib/integers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698