Fix missing type cast

Thanks, Clang!
This commit is contained in:
Camilla Löwy 2017-05-16 14:33:08 +02:00
parent 2f5e230338
commit 85c6168bba

View File

@ -244,7 +244,7 @@ GLFWAPI int glfwGetError(void)
if (_glfw.initialized) if (_glfw.initialized)
{ {
error = (int) (intptr_t) _glfwPlatformGetTls(&_glfw.error); error = (int) (intptr_t) _glfwPlatformGetTls(&_glfw.error);
_glfwPlatformSetTls(&_glfw.error, (intptr_t) GLFW_NO_ERROR); _glfwPlatformSetTls(&_glfw.error, (void*) (intptr_t) GLFW_NO_ERROR);
} }
else else
{ {