[haiku-development] Mediaplayer use of BList to store indices

  • From: Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
  • To: haiku-development <haiku-development@xxxxxxxxxxxxx>
  • Date: Sat, 4 May 2013 11:22:12 +0200

Hi,

I went ahead with some 64 bit fixes in MediaPlayer and got stuck with this:

src/apps/mediaplayer/playlist/ListViews.cpp: In member function 'virtual
void DragSortableListView::MessageReceived(BMessage*)':
src/apps/mediaplayer/playlist/ListViews.cpp:331:28: error: cast to pointer
from integer of different size [-Werror=int-to-pointer-cast]

The code tries to add an int32 in a BList:
indices.AddItem((void*)index);

Any opinions on how to fix this?

Bye,
Jérôme

Other related posts: