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

Unified Diff: media/cast/cast_defines.h

Issue 638123004: Type conversion fixes, media/ edition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: media/cast/cast_defines.h
diff --git a/media/cast/cast_defines.h b/media/cast/cast_defines.h
index 76e252716e0bbd774d56857dea26cf58aceb3625..7e922e6fddde52f6218c81e603c8a755810f775f 100644
--- a/media/cast/cast_defines.h
+++ b/media/cast/cast_defines.h
@@ -179,8 +179,8 @@ inline void ConvertTimeTicksToNtp(const base::TimeTicks& time,
inline base::TimeTicks ConvertNtpToTimeTicks(uint32 ntp_seconds,
uint32 ntp_fractions) {
int64 ntp_time_us =
- static_cast<int64>(ntp_seconds) * base::Time::kMicrosecondsPerSecond +
- static_cast<int64>(ntp_fractions) / kMagicFractionalUnit;
+ ntp_seconds * base::Time::kMicrosecondsPerSecond +
+ static_cast<int64>(ntp_fractions / kMagicFractionalUnit);
base::TimeDelta elapsed_since_unix_epoch = base::TimeDelta::FromMicroseconds(
ntp_time_us -

Powered by Google App Engine
This is Rietveld 408576698