From 85c6168bbab6d924352a6fd2551ddbbf2fa02377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Tue, 16 May 2017 14:33:08 +0200 Subject: [PATCH] Fix missing type cast Thanks, Clang! --- src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {