Chromium Code Reviews| 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; |
| } |