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

Commit 3be092ad authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

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
Merged-In: I8f201f85a03fcf1070a091a5692eeb00ec13961c
(cherry picked from commit d3f1401b)
parent 2df83399
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);