Package: trustedqsl
Version: 1.10-3
Severity: normal
Tags: patch
When building 'trustedqsl' on amd64/unstable with gcc-4.0,
I get the following error:
g++ -O0 -g3 -Wall -I/usr/include -DHAVE_LIBCRYPTO=1 -DSTDC_HEADERS=1
-DHAVE_MKDIR=1 -DHAVE_STRERROR=1 `wx-config --cflags` -c -o crqwiz.o crqwiz.cpp
crqwiz.cpp: In member function 'void CRQ_ProviderPage::DoUpdateInfo()':
crqwiz.cpp:103: error: cast from 'void*' to 'int' loses precision
crqwiz.cpp: In member function 'virtual const char* CRQ_IntroPage::validate()':
crqwiz.cpp:510: error: cast from 'void*' to 'int' loses precision
With the attached patch 'trustedqsl' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/trustedqsl-1.10/crqwiz.cpp ./crqwiz.cpp
--- ../tmp-orig/trustedqsl-1.10/crqwiz.cpp 2003-09-20 08:14:03.000000000
+0200
+++ ./crqwiz.cpp 2005-04-01 13:32:41.136109675 +0200
@@ -100,7 +100,7 @@
CRQ_ProviderPage::DoUpdateInfo() {
int sel = tc_provider->GetSelection();
if (sel >= 0) {
- int idx = (int)(tc_provider->GetClientData(sel));
+ long idx = (long)(tc_provider->GetClientData(sel));
if (idx >=0 && idx < (int)providers.size()) {
Parent()->provider = providers[idx];
wxString info;
@@ -507,7 +507,7 @@
}
ok = (ok && havealpha && havenumeric);
}
- Parent()->dxcc = (int)(tc_dxcc->GetClientData(tc_dxcc->GetSelection()));
+ Parent()->dxcc =
(long)(tc_dxcc->GetClientData(tc_dxcc->GetSelection()));
if (Parent()->dxcc < 0) {
errmsg = "You must select a DXCC entity.";
ok = false;
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]