From 88fd170e646c0b548ba65d9591da1ca2dc1993e9 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 2 Aug 2012 18:22:11 +0200 Subject: [PATCH] Fixed type errors in modes test. --- tests/modes.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/modes.c b/tests/modes.c index 0f2452c7..6d262ef3 100644 --- a/tests/modes.c +++ b/tests/modes.c @@ -92,7 +92,7 @@ static void key_callback(GLFWwindow dummy, int key, int action) static void list_modes(void) { - size_t count, i; + int count, i; GLFWvidmode desktop_mode; GLFWvidmode* modes = glfwGetVideoModes(&count); @@ -114,8 +114,7 @@ static void list_modes(void) static void test_modes(void) { - int width, height; - size_t i, count; + int i, count, width, height; GLFWvidmode* modes = glfwGetVideoModes(&count); glfwSetWindowSizeCallback(window_size_callback);