aboutsummaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index d1a7a4bac..62dcc55cd 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -262,7 +262,7 @@ static void input_backward(unsigned num)
262 return; 262 return;
263 cursor -= num; 263 cursor -= num;
264 264
265 if (cmdedit_x >= num) { 265 if ((unsigned)cmdedit_x >= num) {
266 cmdedit_x -= num; 266 cmdedit_x -= num;
267 if (num <= 4) { 267 if (num <= 4) {
268 /* This is longer by 5 bytes on x86. 268 /* This is longer by 5 bytes on x86.
@@ -321,7 +321,7 @@ static void input_delete(int save)
321{ 321{
322 int j = cursor; 322 int j = cursor;
323 323
324 if (j == command_len) 324 if (j == (int)command_len)
325 return; 325 return;
326 326
327#if ENABLE_FEATURE_EDITING_VI 327#if ENABLE_FEATURE_EDITING_VI
@@ -830,7 +830,7 @@ static void input_tab(smallint *lastWasTab)
830 830
831 if (!*lastWasTab) { 831 if (!*lastWasTab) {
832 char *tmp, *tmp1; 832 char *tmp, *tmp1;
833 int len_found; 833 size_t len_found;
834/* char matchBuf[MAX_LINELEN]; */ 834/* char matchBuf[MAX_LINELEN]; */
835#define matchBuf (S.input_tab__matchBuf) 835#define matchBuf (S.input_tab__matchBuf)
836 int find_type; 836 int find_type;
@@ -1787,7 +1787,7 @@ int read_line_input(const char *prompt, char *command, int maxsize, line_input_t
1787 if (vi_cmdmode) /* Don't self-insert */ 1787 if (vi_cmdmode) /* Don't self-insert */
1788 break; 1788 break;
1789#endif 1789#endif
1790 if (command_len >= (maxsize - 2)) /* Need to leave space for enter */ 1790 if ((int)command_len >= (maxsize - 2)) /* Need to leave space for enter */
1791 break; 1791 break;
1792 1792
1793 command_len++; 1793 command_len++;