From 7d704760ab9d8e35d5a567b4dd9e622defdfe9c8 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 10 Jan 2011 21:13:50 +0000 Subject: Added an explicit type conversion to prevent some compilers from beeing confused. --- src/client/trademenu.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/trademenu.cc b/src/client/trademenu.cc index 3bd4814..b6f0cc2 100644 --- a/src/client/trademenu.cc +++ b/src/client/trademenu.cc @@ -172,7 +172,7 @@ void TradeMenu::set_item(ui::ListItem *item) menu_slider->set_range(1, max_amount); menu_slider->show(); - amount = menu_slider->value(); + amount = (long) menu_slider->value(); std::ostringstream commandstr; commandstr << "remote sell " << item->info()->type()->label() << " " << item->info()->label() << " " << amount; @@ -222,7 +222,7 @@ void TradeMenu::set_item(ui::ListItem *item) if (max_amount > 0) { menu_slider->set_range(1, max_amount); menu_slider->show(); - amount = menu_slider->value(); + amount = (long) menu_slider->value(); std::ostringstream commandstr; commandstr << "remote buy " << item->info()->type()->label() << " " << item->info()->label() << " " << amount; -- cgit v1.2.3