diff --git a/src/init.c b/src/init.c index a0c6e42e..19ae4c1d 100644 --- a/src/init.c +++ b/src/init.c @@ -244,7 +244,7 @@ GLFWAPI int glfwGetError(void) if (_glfw.initialized) { 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 {