Commit 5f5cc2eaaee6932d595b95687a1183144b07fdb1

Insop Song 2014-02-21T01:21:13

fix incorrect type caused issue on 64bit powerpc Signed-off-by: Insop Song <insop.song@gainspeed.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/linenoise.c b/linenoise.c
index c4e3118..06716fa 100644
--- a/linenoise.c
+++ b/linenoise.c
@@ -461,7 +461,7 @@ static void refreshLine(struct linenoiseState *l) {
 /* Insert the character 'c' at cursor current position.
  *
  * On error writing to the terminal -1 is returned, otherwise 0. */
-int linenoiseEditInsert(struct linenoiseState *l, int c) {
+int linenoiseEditInsert(struct linenoiseState *l, char c) {
     if (l->len < l->buflen) {
         if (l->len == l->pos) {
             l->buf[l->pos] = c;