diff options
author | Stijn Buys <ingar@osirion.org> | 2011-01-10 21:13:50 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-01-10 21:13:50 +0000 |
commit | 7d704760ab9d8e35d5a567b4dd9e622defdfe9c8 (patch) | |
tree | 87e817210eceed21fcad4a2ef3bdc5df05974367 | |
parent | 82992a9b16d64104dd28d42e97cc118a75fded86 (diff) |
Added an explicit type conversion to prevent some compilers from beeing confused.
-rw-r--r-- | src/client/trademenu.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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; |