Re: Re: [M-CVS] CVS: M/src/wx/generic persctrl.cpp,1.96,1.97

Vadim Zeitlin <[email protected]>
Newsgroups gmane.mail.mahogany.devel
Message-ID <[email protected]>
On Sun, 16 Apr 2006 23:48:35 +0300 Nerijus Baliunas <[email protected]> wrote:

NB> But now there are warnings with 2.6:
NB> .src/wx/generic/persctrl.cpp: In member function 'void wxPListBox::RestoreSelection()':
NB> .src/wx/generic/persctrl.cpp:1084: warning: comparison between signed and unsigned integer expressions
NB> .src/wx/generic/persctrl.cpp: In member function 'void wxPChoice::RestoreSelection()':
NB> .src/wx/generic/persctrl.cpp:1196: warning: comparison between signed and unsigned integer expressions
NB> .src/wx/generic/persctrl.cpp: In member function 'void wxPRadioBox::RestoreSelection()':
NB> .src/wx/generic/persctrl.cpp:1314: warning: comparison between signed and unsigned integer expressions
NB> 
NB> I assume nothing can be done about it?

 I think something like this

#if wxCHECK_VERSION(2, 7, 0)
	#define wxCOUNT_TYPE unsigned
#else
	#define wxCOUNT_TYPE int
#endif

and replacing all "(size_t)sel" with "wxCOUNT_TYPE_CAST(sel)" should fix
it. Could you please try it out?

 Thanks,
VZ



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.