From a7eea67253341f5a545b36e5529a1085b5eaf8ac Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 24 Jul 2010 03:09:00 +0200 Subject: [PATCH] Cast size_t to int, confuses some compilers otherwise. --- src/editline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editline.c b/src/editline.c index 2e1fc5c..140ad8e 100644 --- a/src/editline.c +++ b/src/editline.c @@ -437,7 +437,7 @@ static void ceol(void) static void clear_line(void) { - rl_point = -strlen(Prompt); + rl_point = -(int)strlen(Prompt); tty_put('\r'); ceol(); rl_point = 0;