[haiku-commits] Re: haiku: hrev50137 - src/apps/packageinstaller

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 7 Mar 2016 16:00:41 -0500

On Mon, Mar 7, 2016 at 3:52 PM,  <waddlesplash@xxxxxxxxx> wrote:

diff --git a/src/apps/packageinstaller/UninstallView.cpp 
b/src/apps/packageinstaller/UninstallView.cpp
index 87024b6..fed2719 100644
--- a/src/apps/packageinstaller/UninstallView.cpp
+++ b/src/apps/packageinstaller/UninstallView.cpp
@@ -377,7 +377,7 @@ UninstallView::_ReloadAppList()
 void
 UninstallView::_ClearAppList()
 {
-       while (BListItem* item = fAppList->RemoveItem(0))
+       while (BListItem* item = fAppList->RemoveItem(0L))
                delete item;

This could've been made to work just fine on all platforms by
replacing 0L with (int32)0 as is done pretty much everywhere else that
uses that call.

Rene

Other related posts: