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

Commit 044358d1 authored by Jamie Gennis's avatar Jamie Gennis Committed by Android (Google) Code Review
Browse files

Merge "Fix a compile warning in the Surface class."

parents 11494934 e9ebae24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1029,7 +1029,7 @@ int Surface::getBufferIndex(const sp<GraphicBuffer>& buffer) const
        // one of the buffers for which we do know the index.  This can happen
        // e.g. if GraphicBuffer is used to wrap an android_native_buffer_t that
        // was dequeued from an ANativeWindow.
        for (int i = 0; i < mBuffers.size(); i++) {
        for (size_t i = 0; i < mBuffers.size(); i++) {
            if (buffer->handle == mBuffers[i]->handle) {
                idx = mBuffers[i]->getIndex();
                break;