Commit d771957055b62bc7dbfc239b2074769ae70aea23

Thomas de Grivel 2023-11-22T16:41:15

fix compilation with clang

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/linenoise.c b/linenoise.c
index 266d2af..7bc0261 100644
--- a/linenoise.c
+++ b/linenoise.c
@@ -1138,7 +1138,7 @@ void linenoisePrintKeyCodes(void) {
         if (memcmp(quit,"quit",sizeof(quit)) == 0) break;
 
         printf("'%c' %02x (%d) (type quit to exit)\n",
-            isprint(c) ? c : '?', (int)c, (int)c);
+               isprint((int) c) ? c : '?', (int)c, (int)c);
         printf("\r"); /* Go left edge manually, we are in raw mode. */
         fflush(stdout);
     }