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

Commit 71ec3dfc authored by Wonsik Kim's avatar Wonsik Kim
Browse files

stagefright: fix clang build

Change-Id: I4f10e4af6f0b5fb0b90513ad516b36b444d3bd68
parent 054bf835
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -109,7 +109,8 @@ ssize_t TinyCacheSource::readAt(off64_t offset, void* data, size_t size) {
    }

    // Check if the cache satisfies the read.
    if (mCachedOffset <= offset && offset < mCachedOffset + mCachedSize) {
    if (mCachedOffset <= offset
            && offset < (off64_t) (mCachedOffset + mCachedSize)) {
        if (offset + size <= mCachedOffset + mCachedSize) {
            memcpy(data, &mCache[offset - mCachedOffset], size);
            return size;