summaryrefslogtreecommitdiffstats
path: root/media/libnbaio
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-08-12 09:13:58 -0700
committerGlenn Kasten <gkasten@google.com>2014-08-12 09:15:24 -0700
commite3c7c6480c8752b9b003c5e31ce7753cecf7e24b (patch)
treede701bf39adcc9028f2a42b117499efada26cae8 /media/libnbaio
parentf1c2e1d4e15301476a9dfc4c78eb40a46f8962d6 (diff)
downloadframeworks_av-e3c7c6480c8752b9b003c5e31ce7753cecf7e24b.zip
frameworks_av-e3c7c6480c8752b9b003c5e31ce7753cecf7e24b.tar.gz
frameworks_av-e3c7c6480c8752b9b003c5e31ce7753cecf7e24b.tar.bz2
Fix compile error when LOG_NDEBUG enabled
Bug: 16977404 Change-Id: Ia7d6ea00d7b89ba10ff70f542b5f4c7ed2c2147e
Diffstat (limited to 'media/libnbaio')
-rw-r--r--media/libnbaio/MonoPipeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libnbaio/MonoPipeReader.cpp b/media/libnbaio/MonoPipeReader.cpp
index de82229..e4d3ed8 100644
--- a/media/libnbaio/MonoPipeReader.cpp
+++ b/media/libnbaio/MonoPipeReader.cpp
@@ -39,7 +39,7 @@ ssize_t MonoPipeReader::availableToRead()
return NEGOTIATE;
}
ssize_t ret = android_atomic_acquire_load(&mPipe->mRear) - mPipe->mFront;
- ALOG_ASSERT((0 <= ret) && (ret <= mMaxFrames));
+ ALOG_ASSERT((0 <= ret) && ((size_t) ret <= mPipe->mMaxFrames));
return ret;
}