diff options
Diffstat (limited to 'mdk-stage1/newt/entry.c')
-rw-r--r-- | mdk-stage1/newt/entry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/newt/entry.c b/mdk-stage1/newt/entry.c index 154edba71..1b33f1c6f 100644 --- a/mdk-stage1/newt/entry.c +++ b/mdk-stage1/newt/entry.c @@ -228,7 +228,7 @@ static struct eventResult entryEvent(newtComponent co, case EV_MOUSE: if ((ev.u.mouse.type == MOUSE_BUTTON_DOWN) && (en->flags ^ NEWT_FLAG_HIDDEN)) { - if (strlen(en->buf) >= ev.u.mouse.x - co->left) { + if (strlen(en->buf) >= (size_t) (ev.u.mouse.x - co->left)) { en->cursorPosition = ev.u.mouse.x - co->left; newtGotorc(co->top, co->left +(en->cursorPosition - en->firstChar)); |