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

Commit d6baf6f9 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Fix misc-macro-parentheses warnings.

Bug: 28705665
Change-Id: I51f09c5d6537b864a53db891ba5f86cf6c195dac
parent 0603c5df
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2332,7 +2332,7 @@ status_t AudioTrack::getTimestamp(AudioTimestamp& timestamp)
    // This is sometimes caused by erratic reports of the available space in the ALSA drivers.
    if (status == NO_ERROR) {
        if (previousTimestampValid) {
#define TIME_TO_NANOS(time) ((uint64_t)time.tv_sec * 1000000000 + time.tv_nsec)
#define TIME_TO_NANOS(time) ((uint64_t)(time).tv_sec * 1000000000 + (time).tv_nsec)
            const uint64_t previousTimeNanos = TIME_TO_NANOS(mPreviousTimestamp.mTime);
            const uint64_t currentTimeNanos = TIME_TO_NANOS(timestamp.mTime);
#undef TIME_TO_NANOS