Commit c5b9daca881649610c2b0dff5f355ec5539b5300

Thomas de Grivel 2024-01-10T00:36:57

fix compilation on arch

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/linenoise.c b/linenoise.c
index d2a72af..eb2614c 100644
--- a/linenoise.c
+++ b/linenoise.c
@@ -819,7 +819,7 @@ static int linenoiseEdit(int stdin_fd, int stdout_fd, char *buf, size_t buflen, 
 
     if (write(l.ofd,prompt,l.plen) == -1) return -1;
     while(1) {
-        char c;
+        signed char c;
         int nread;
         char seq[3];