diff --git a/samples/treectrl/treetest.cpp b/samples/treectrl/treetest.cpp index 135b59b7ed..46e44ed238 100644 --- a/samples/treectrl/treetest.cpp +++ b/samples/treectrl/treetest.cpp @@ -661,7 +661,7 @@ void MyTreeCtrl::OnEndDrag(wxTreeEvent& event) { wxTreeItemId itemSrc = m_draggedItem, itemDst = event.GetItem(); - m_draggedItem = 0; + m_draggedItem = (wxTreeItemId)0l; // where to copy the item? if ( itemDst.IsOk() && !ItemHasChildren(itemDst) )