diff options
author | Jamie Gennis <jgennis@google.com> | 2010-11-09 18:01:27 -0800 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2010-11-11 13:41:43 -0800 |
commit | 0b440fc34da7f53fcec24cc8c907b959218b957d (patch) | |
tree | 0200cacdea2ebbc91e58ab0b706d597c719624df | |
parent | 0996daa748083507f276617b1fb739414c594ae6 (diff) | |
download | frameworks_base-0b440fc34da7f53fcec24cc8c907b959218b957d.zip frameworks_base-0b440fc34da7f53fcec24cc8c907b959218b957d.tar.gz frameworks_base-0b440fc34da7f53fcec24cc8c907b959218b957d.tar.bz2 |
Fix a compile warning in the Surface class.
Change-Id: Id744e71d2cd23c287925a5090e13a6d9908cdd99
-rw-r--r-- | libs/surfaceflinger_client/Surface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/surfaceflinger_client/Surface.cpp b/libs/surfaceflinger_client/Surface.cpp index 7af6ce8..c1e00ca 100644 --- a/libs/surfaceflinger_client/Surface.cpp +++ b/libs/surfaceflinger_client/Surface.cpp @@ -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; |