Fix a compile warning in the Surface class.

Change-Id: Id744e71d2cd23c287925a5090e13a6d9908cdd99
This commit is contained in:
Jamie Gennis 2010-11-09 18:01:27 -08:00
parent 5d9a8d6ecb
commit e9ebae24b9
1 changed files with 1 additions and 1 deletions

View File

@ -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;