Merge pull request #53 from insop/master fix incorrect type caused issue on 64bit powerpc
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;