Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27526f23 authored by John Grossman's avatar John Grossman Committed by Android (Google) Code Review
Browse files

Merge "Fix the build."

parents 7729a8c4 b8525e9a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@
#include "clock_recovery.h"
#include "common_clock.h"

using std::numeric_limits;
#define MAX_INT ((int)0x7FFFFFFF)

namespace android {

@@ -1335,8 +1335,8 @@ int CommonTimeServer::TimeoutHelper::msecTillTimeout() {

    uint64_t deltaMsec = (((mEndTime - now) + 999999) / 1000000);

    if (deltaMsec > static_cast<uint64_t>(std::numeric_limits<int>::max()))
        return std::numeric_limits<int>::max();
    if (deltaMsec > static_cast<uint64_t>(MAX_INT))
        return MAX_INT;

    return static_cast<int>(deltaMsec);
}