ports/databases/redis/patches/patch-deps_linenoise_linenoise_c

19 lines
530 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Fix an occurrence where char is considered signed on all platforms,
it's not the case on powerpc and arm.
https://github.com/antirez/redis/pull/7132
https://github.com/antirez/linenoise/pull/188
Index: deps/linenoise/linenoise.c
--- deps/linenoise/linenoise.c.orig
+++ deps/linenoise/linenoise.c
@@ -819,7 +819,7 @@ static int linenoiseEdit(int stdin_fd, int stdout_fd,
if (write(l.ofd,prompt,l.plen) == -1) return -1;
while(1) {
- char c;
+ signed char c;
int nread;
char seq[3];