--- XaoS-3.1pre1/src/ui-hlp/messg.c.64bit-fixes 1998-05-12 17:09:56.000000000 -0400 +++ XaoS-3.1pre1/src/ui-hlp/messg.c 2002-10-09 05:38:36.000000000 -0400 @@ -14,7 +14,7 @@ void getpos (uih_context * c, int *x, int *y, int *w, int *h, void *data) { - int n = (int) data; + long n = (long) data; if (c->messg.message[n] != NULL) { int he = xtextheight (c->font); @@ -32,7 +32,7 @@ void draw (uih_context * c, void *data) { int x, y, w; - int n = (int) data; + long n = (long) data; if (c->messg.message[n] != NULL) { int h = xtextheight (c->font); @@ -82,7 +82,7 @@ uih_clearmessages (uih_context * c) void uih_initmessages (uih_context * c) { - int i; + long i; for (i = 0; i < NMESSAGES; i++) { c->messg.message[i] = NULL; --- XaoS-3.1pre1/src/ui-hlp/playtext.c.64bit-fixes 1998-05-12 17:09:56.000000000 -0400 +++ XaoS-3.1pre1/src/ui-hlp/playtext.c 2002-10-09 05:39:54.000000000 -0400 @@ -56,7 +56,7 @@ prepare (struct uih_context *c, char *st static void getpos (uih_context * c, int *x, int *y, int *w, int *h, void *data) { - int num = (int) data; + long num = (long) data; int xmax, nr; if (c->text[num] == NULL) { @@ -95,7 +95,7 @@ getpos (uih_context * c, int *x, int *y, static void draw (uih_context * c, void *data) { - int num = (int) data; + long num = (long) data; int flags = 0; int xmax, n, nr, i; int x = 0, y = 0; @@ -163,9 +163,9 @@ uih_inittext (uih_context * c) { c->text[0] = c->text[1] = c->text[2] = NULL; c->textpos[0] = c->textpos[1] = c->textpos[2] = 0; - c->textwindow[0] = uih_registerw (c, getpos, draw, (void *) 0, 0); - c->textwindow[1] = uih_registerw (c, getpos, draw, (void *) 1, 0); - c->textwindow[2] = uih_registerw (c, getpos, draw, (void *) 2, 0); + c->textwindow[0] = uih_registerw (c, getpos, draw, (void *) 0L, 0); + c->textwindow[1] = uih_registerw (c, getpos, draw, (void *) 1L, 0); + c->textwindow[2] = uih_registerw (c, getpos, draw, (void *) 2L, 0); } void uih_destroytext (uih_context * c)