Make qsort invocations type independent

This commit is contained in:
Kovid Goyal
2019-07-23 10:20:41 +05:30
parent 6a126fa18e
commit d9f90ef077
3 changed files with 4 additions and 4 deletions

View File

@@ -315,7 +315,7 @@ bool _glfwInitJoysticksLinux(void)
// Continue with no joysticks if enumeration fails
qsort(_glfw.joysticks, count, sizeof(_GLFWjoystick), compareJoysticks);
qsort(_glfw.joysticks, count, sizeof(_glfw.joysticks[0]), compareJoysticks);
return true;
}