Don't use "p" and "p++" in the same statement in wxOSX OpenGL code

This results in unspecified behaviour.

See #16909.
This commit is contained in:
Vadim Zeitlin
2016-02-26 13:15:08 +01:00
parent c4907129f4
commit 7cc91cc755

View File

@@ -90,7 +90,10 @@ WXGLPixelFormat WXGLChoosePixelFormat(const int *GLAttrs,
{ {
n1--; // skip the ending '0' n1--; // skip the ending '0'
while ( p < n1 ) while ( p < n1 )
data[p++] = (NSOpenGLPixelFormatAttribute) GLAttrs[p]; {
data[p] = (NSOpenGLPixelFormatAttribute) GLAttrs[p];
p++;
}
} }
if ( ctxAttrs && n2 > 1 ) if ( ctxAttrs && n2 > 1 )