mapi/test: Change type to unsigned for offset
authorKristian H. Kristensen <hoegsberg@google.com>
Wed, 29 Jul 2020 04:10:57 +0000 (21:10 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 Aug 2020 18:08:06 +0000 (18:08 +0000)
Quiets this warning:

../../master/src/mapi/glapi/tests/check_table.cpp:576:20: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'int' in initializer list [-Wc++11-narrowing]
   { "glColor3dv", _O(Color3dv) },
                   ^~~~~~~~~~~~

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6112>

src/mapi/glapi/tests/check_table.cpp

index 761f2a24e092b1f8908935d782e6f332ef181c21..82da3f2ed9083b426a992a55ad84d92070e2eeb8 100644 (file)
@@ -29,7 +29,7 @@
 
 struct name_offset {
    const char *name;
-   int offset;
+   unsigned int offset;
 };
 
 extern const struct name_offset linux_gl_abi[];