Package: xfe
Severity: normal
Tags: patch

When building 'xfe' on amd64 with gcc-4.0,
I get the following error:

if x86_64-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. 
-I.. -I. -I. -I.. -I../intl -I../intl -I/usr/include/fox -DLINUX -Wall  -O2 -g 
-O2 -MT FilePanel.o -MD -MP -MF ".deps/FilePanel.Tpo" \
  -c -o FilePanel.o `test -f 'FilePanel.cc' || echo './'`FilePanel.cc; \
then mv -f ".deps/FilePanel.Tpo" ".deps/FilePanel.Po"; \
else rm -f ".deps/FilePanel.Tpo"; exit 1; \
fi
FilePanel.cc: In member function 'long int 
FilePanel::onCmdItemDblClcked(FXObject*, FXSelector, void*)':
FilePanel.cc:236: error: cast from 'void*' to 'int' loses precision
make[3]: *** [FilePanel.o] Error 1
make[3]: Leaving directory `/xfe-0.66/src'

With the attached patch 'xfe' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/xfe-0.66/src/FilePanel.cc ./src/FilePanel.cc
--- ../tmp-orig/xfe-0.66/src/FilePanel.cc       2004-01-28 15:17:27.000000000 
+0100
+++ ./src/FilePanel.cc  2005-03-03 11:17:44.695948848 +0100
@@ -233,7 +233,7 @@
     FXchar path[MAXPATHLEN+1],name[2048],dir[MAXPATHLEN+1],*p;
     FXString buf;
 
-    int item= (int) ptr;
+    long item= (long) ptr;
     if(item > -1)
     {
         strcpy(name,list->getItemText(item).text());      //// FIX


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to