Bug #8354 2006-08-12 11:56

ondra_holub

propgrid.cpp not compilable on 64bit Linux

File: sr/sdk/propgrid/src/propgrid/propgrid.cpp
Compile error: ./src/propgrid/propgrid.cpp: In static member function 'static void wxPropertyGrid::DumpAllocatedChoiceSets()':
./src/propgrid/propgrid.cpp:1042: error: cast from 'wxPGConstants*' to 'unsigned int' loses precision

Reason: pointer is wider than unsigned int on 64 bit Linux.

Possible fix: Since it is only logging function, it may be either commented-out or line 1041-1043 should be changed to
        wxLogDebug(wxT("**** Dumping 0x%X (%p labels, %i values, %i references)****"),
            soc,(int)labels.GetCount(),(int)values.GetCount(),
            (int)soc->GetRefCount());
Category
Plugin::wxSmith
Group
 
Status
Closed
Close date
2006-09-23 11:18
Assigned to
 
ondra_holub 2006-08-12 12:46
Better modification of above mentioned command would be 

        wxLogDebug(wxT("**** Dumping 0x%lX (%i labels, %i values, %i references)****"),
            (unsigned long)soc,(int)labels.GetCount(),(int)values.GetCount(),
            (int)soc->GetRefCount());
ondra_holub 2006-09-10 15:40

In latest build 2967 this problem no longer exists, so this bug may be closed.