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

Commit 9764d529 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by android-build-merger
Browse files

Merge "Fix misc-macro-parentheses warnings."

am: e0a6fa05

* commit 'e0a6fa05':
  Fix misc-macro-parentheses warnings.

Change-Id: I6dab8681a719ce43c68dab3534c13ce41c7bc711
parents f82e7a91 e0a6fa05
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