Package: wstools
Version: 0.4.8d-1
Severity: serious
Tags: patch

When building 'wstools' on amd64/unstable,
I get the following error:

c++ -O2 -g -Wall -I.. -DHAVE_FFTW3=1 -I/usr/lib/wx/include/gtk-2.4 
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES 
-fexceptions -c FSK441Frame.cpp
../common/SoundDev.h:22: warning: 'class ISoundDev' has virtual functions but 
non-virtual destructor
FSK441Frame.cpp: In member function 'virtual void CFSK441Frame::onTXOrder(const 
wxCommandEvent&)':
FSK441Frame.cpp:285: error: cast from 'void*' to 'int' loses precision
make[2]: *** [FSK441Frame.o] Error 1
make[2]: Leaving directory `/wstools-0.4.8d/fsk441'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/wstools-0.4.8d/fsk441/FSK441Frame.cpp 
./fsk441/FSK441Frame.cpp
--- ../tmp-orig/wstools-0.4.8d/fsk441/FSK441Frame.cpp   2004-06-05 
17:37:39.000000000 +0000
+++ ./fsk441/FSK441Frame.cpp    2005-08-13 18:29:33.000000000 +0000
@@ -282,7 +282,7 @@
 
 void CFSK441Frame::onTXOrder(const wxCommandEvent& event)
 {
-       bool txFirst = int(event.GetClientData()) == Transmit_First;
+       bool txFirst = long(event.GetClientData()) == Transmit_First;
 
        ::wxGetApp().setTXFirst(txFirst);
 }
diff -urN ../tmp-orig/wstools-0.4.8d/jt44/JT44Frame.cpp ./jt44/JT44Frame.cpp
--- ../tmp-orig/wstools-0.4.8d/jt44/JT44Frame.cpp       2004-06-05 
18:14:17.000000000 +0000
+++ ./jt44/JT44Frame.cpp        2005-08-13 18:30:22.000000000 +0000
@@ -290,7 +290,7 @@
 
 void CJT44Frame::onTXOrder(const wxCommandEvent& event)
 {
-       bool txFirst = int(event.GetClientData()) == Transmit_First;
+       bool txFirst = long(event.GetClientData()) == Transmit_First;
 
        ::wxGetApp().setTXFirst(txFirst);
 }
diff -urN ../tmp-orig/wstools-0.4.8d/jt6m/JT6MFrame.cpp ./jt6m/JT6MFrame.cpp
--- ../tmp-orig/wstools-0.4.8d/jt6m/JT6MFrame.cpp       2004-06-05 
18:46:44.000000000 +0000
+++ ./jt6m/JT6MFrame.cpp        2005-08-13 18:30:46.000000000 +0000
@@ -282,7 +282,7 @@
 
 void CJT6MFrame::onTXOrder(const wxCommandEvent& event)
 {
-       bool txFirst = int(event.GetClientData()) == Transmit_First;
+       bool txFirst = long(event.GetClientData()) == Transmit_First;
 
        ::wxGetApp().setTXFirst(txFirst);
 }


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

Reply via email to