diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-07-03 18:38:05 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-07-03 18:38:05 +0000 |
commit | 1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1 (patch) | |
tree | 54c7b6b4bbaf2e493e773f9e48d7eb459f60f197 /mdk-stage1/newt/entry.c | |
parent | a3fd355593f7ab9ae5c6d57ec69ef3f5a2f8cb9a (diff) | |
download | drakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar drakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.gz drakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.bz2 drakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.xz drakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.zip |
compile with -W
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)); |