From 176041c517cdfb0a06b754378a1f3de05844c890 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Tue, 17 Sep 2013 16:02:43 +0200 Subject: [PATCH] Build fix. --- src/apps/haiku-depot/PackageInfoView.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/apps/haiku-depot/PackageInfoView.cpp b/src/apps/haiku-depot/PackageInfoView.cpp index f4e619f0c5..3ae6fe6ccc 100644 --- a/src/apps/haiku-depot/PackageInfoView.cpp +++ b/src/apps/haiku-depot/PackageInfoView.cpp @@ -766,9 +766,9 @@ public: fDownVoteCountView->SetHighColor(kLightBlack); BString voteCountLabel; - voteCountLabel.SetToFormat("%ld", rating.UpVotes()); + voteCountLabel.SetToFormat("%" B_PRId32, rating.UpVotes()); fUpVoteCountView->SetText(voteCountLabel); - voteCountLabel.SetToFormat("%ld", rating.DownVotes()); + voteCountLabel.SetToFormat("%" B_PRId32, rating.DownVotes()); fDownVoteCountView->SetText(voteCountLabel); fTextView = new TextView("rating text"); @@ -883,7 +883,7 @@ public: for (int32 i = 0; i < 5; i++) { BString label; - label.SetToFormat("%ld", 5 - i); + label.SetToFormat("%" B_PRId32, 5 - i); fLabelViews[i] = new BStringView("", label); fLabelViews[i]->SetFont(&smallFont); fLabelViews[i]->SetHighColor(kLightBlack); @@ -904,10 +904,10 @@ public: void SetToSummary(const RatingSummary& summary) { for (int32 i = 0; i < 5; i++) { - int count = summary.ratingCountByStar[4 - i]; + int32 count = summary.ratingCountByStar[4 - i]; BString label; - label.SetToFormat("%ld", count); + label.SetToFormat("%" B_PRId32, count); fCountViews[i]->SetText(label); if (summary.ratingCount > 0) {