fix warning on getch
authorLaurent Mazet <mazet@softndesign.org>
Tue, 22 Oct 2024 08:12:00 +0000 (10:12 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Tue, 22 Oct 2024 08:12:00 +0000 (10:12 +0200)
time.c

diff --git a/time.c b/time.c
index 7c0d9d1b07c51accf0d69cc33ac00fbe0c91b5be..343dcd263fcb1517668ba248fd8d6ce58e932b24 100644 (file)
--- a/time.c
+++ b/time.c
@@ -45,7 +45,7 @@ void msleep (int msec)
 
 void waitforkey (char key)
 {
-    char c;
+    int c;
     while ((c = getch ()) == ERR) {
         if ((key) && (c == key)) {
             break;