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

Commit 36902cbc authored by Michael Butler's avatar Michael Butler Committed by Slava Shklyaev
Browse files

NNAPI VTS: use max time point instead of uint64_t max

Bug: 149441015
Test: mma
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: Ic74f83242cbe04a4cec47adbfc51002fdf8bb47d
Merged-In: Ic74f83242cbe04a4cec47adbfc51002fdf8bb47d
(cherry picked from commit 79d6bb1a)
parent 17689aa6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -67,8 +67,10 @@ static OptionalTimePoint makeOptionalTimePoint(DeadlineBoundType deadlineBoundTy
            deadline.nanosecondsSinceEpoch(nanosecondsSinceEpoch);
        } break;
        case DeadlineBoundType::UNLIMITED: {
            uint64_t unlimited = std::numeric_limits<uint64_t>::max();
            deadline.nanosecondsSinceEpoch(unlimited);
            const auto maxTime = std::chrono::time_point<std::chrono::steady_clock,
                                                         std::chrono::nanoseconds>::max();
            const uint64_t nanosecondsSinceEpoch = maxTime.time_since_epoch().count();
            deadline.nanosecondsSinceEpoch(nanosecondsSinceEpoch);
        } break;
    }
    return deadline;