Win32: Fix VS static analysis warnings

This commit is contained in:
Camilla Löwy
2019-04-15 15:35:38 +02:00
parent 334a485968
commit 1f91697cd3
8 changed files with 12 additions and 12 deletions

View File

@@ -446,7 +446,7 @@ void _glfwTerminateEGL(void)
#define setAttrib(a, v) \
{ \
assert((size_t) (index + 1) < sizeof(attribs) / sizeof(attribs[0])); \
assert(((size_t) index + 1) < sizeof(attribs) / sizeof(attribs[0])); \
attribs[index++] = a; \
attribs[index++] = v; \
}