On Mon, Jan 5, 2015 at 12:10 PM, Marcus <marcus.harnisch(a)xemacs.org> wrote:
,--------------------
| lwlib-Xaw.c: In function 'void xaw_scrollbar_scroll(Widget, XtPointer,
XtPointer)':
| lwlib-Xaw.c:616:35: error: cast from 'XtPointer {aka void*}' to 'int'
loses precision [-fpermissive]
| event_data.slider_value = (int) call_data;
| ^
| lwlib-Xaw.c:619:13: error: cast from 'XtPointer {aka void*}' to 'int'
loses precision [-fpermissive]
| if ((int) call_data > 0)
| ^
| make[1]: *** [lwlib-Xaw.o] Error 1
`--------------------
Does the compile succeed if you cast to long first, then to int? That is
Line 616:
event_data.slider_value = (int) (long) call_data;
Line 619:
if ((int) (long) call_data > 0)
It would be better to cast to intptr_t, instead of long, but then we'd
have to know what an intptr_t is.
--
Jerry James
http://www.jamezone.org/
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta