diff options
author | 2017-07-12 15:55:18 -0700 | |
---|---|---|
committer | 2017-07-12 15:55:18 -0700 | |
commit | d3f1401b9d48de65c015b49048ee8deeb85cec0b (patch) | |
tree | 50f2a314b3cbdfc3dd2902b65007b907f6971d23 | |
parent | 9592c03712ef7e1f43c582dc23296117fd4a6363 (diff) |
Fix signed/unsigned conversion warning
sizeof(T) hands back size_t; clang got upset that we were comparing it
to an int.
Bug: None
Test: mma. Warning disappeared.
Change-Id: I8f201f85a03fcf1070a091a5692eeb00ec13961c
-rw-r--r-- | opengl/tests/configdump/configdump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/tests/configdump/configdump.cpp b/opengl/tests/configdump/configdump.cpp index c423105a11..a4bb8791ea 100644 --- a/opengl/tests/configdump/configdump.cpp +++ b/opengl/tests/configdump/configdump.cpp @@ -78,7 +78,7 @@ int main(int /*argc*/, char** /*argv*/) { for (EGLint i=0 ; i<n ; i++) { printf("EGLConfig[%d]\n", i); - for (int attr = 0 ; attr<sizeof(attributes)/sizeof(Attribute) ; attr++) { + for (unsigned attr = 0 ; attr<sizeof(attributes)/sizeof(Attribute) ; attr++) { EGLint value; eglGetConfigAttrib(dpy, configs[i], attributes[attr].attribute, &value); printf("\t%-32s: %10d (0x%08x)\n", attributes[attr].name, value, value); |