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

Unified Diff: base/time_posix.cc

Issue 10451068: Fixing gcc 4.7 building problems. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Modified per Adam's comments 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
Index: base/time_posix.cc
diff --git a/base/time_posix.cc b/base/time_posix.cc
index 18203cf80bf7eb7b3fa9fddf797783ee0b1420c6..ce1e87e9c27ff38406a431e74c7372b8ca35e664 100644
--- a/base/time_posix.cc
+++ b/base/time_posix.cc
@@ -34,7 +34,7 @@ struct timespec TimeDelta::ToTimeSpec() const {
}
struct timespec result =
{seconds,
- microseconds * Time::kNanosecondsPerMicrosecond};
+ static_cast<long int>(microseconds * Time::kNanosecondsPerMicrosecond)};
brettw 2012/05/29 19:30:46 Can you just do "long" here (it's the same, right?
Han 2012/05/29 20:57:04 Yes, 'long' is just an alias for 'long int'.
return result;
}

Powered by Google App Engine
This is Rietveld 408576698