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

Commit 8406f85a authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "NNAPI VTS: use max time point instead of uint64_t max" am: 775fe5c6 am: 0040a2cd

Change-Id: Icacd882db6e9aa22b7cdebe0cc74364c7a36603b
parents 04295044 0040a2cd
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;