summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/newt/entry.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-07-03 18:38:05 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-07-03 18:38:05 +0000
commit1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1 (patch)
tree54c7b6b4bbaf2e493e773f9e48d7eb459f60f197 /mdk-stage1/newt/entry.c
parenta3fd355593f7ab9ae5c6d57ec69ef3f5a2f8cb9a (diff)
downloaddrakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar
drakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.gz
drakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.bz2
drakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.xz
drakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.zip
compile with -W
Diffstat (limited to 'mdk-stage1/newt/entry.c')
-rw-r--r--mdk-stage1/newt/entry.c2
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));