diff --git a/examples/simple.c b/examples/simple.c index 16e88e4b..653c1fd0 100644 --- a/examples/simple.c +++ b/examples/simple.c @@ -69,7 +69,7 @@ int main(void) glMatrixMode(GL_MODELVIEW); glLoadIdentity(); - glRotatef(glfwGetTime() * 50.f, 0.f, 0.f, 1.f); + glRotatef((float) glfwGetTime() * 50.f, 0.f, 0.f, 1.f); glBegin(GL_TRIANGLES); glColor3f(1.f, 0.f, 0.f); diff --git a/src/win32_window.c b/src/win32_window.c index e11beecb..2d51b689 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -407,7 +407,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, case WM_CHAR: { - _glfwInputChar(window, wParam); + _glfwInputChar(window, (unsigned int) wParam); return 0; } diff --git a/tests/tearing.c b/tests/tearing.c index 4e375950..93584285 100644 --- a/tests/tearing.c +++ b/tests/tearing.c @@ -95,7 +95,7 @@ int main(void) { glClear(GL_COLOR_BUFFER_BIT); - position = cosf(glfwGetTime() * 4.f) * 0.75f; + position = cosf((float) glfwGetTime() * 4.f) * 0.75f; glRectf(position - 0.25f, -1.f, position + 0.25f, 1.f); glfwSwapBuffers(window);