summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2010-11-11 13:50:43 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-11-11 13:50:43 -0800
commit088f50ccf74d191b3d0d01cff6e9045a1f04c0f1 (patch)
treeac2891aff88ec7693c1f8c66b62ffef7c64dabf9 /libs
parent7869c52370c2fa72244944aea9fade05a0c0da2a (diff)
parent0b440fc34da7f53fcec24cc8c907b959218b957d (diff)
downloadframeworks_base-088f50ccf74d191b3d0d01cff6e9045a1f04c0f1.zip
frameworks_base-088f50ccf74d191b3d0d01cff6e9045a1f04c0f1.tar.gz
frameworks_base-088f50ccf74d191b3d0d01cff6e9045a1f04c0f1.tar.bz2
Merge "Fix a compile warning in the Surface class."
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaceflinger_client/Surface.cpp2
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;