(svn r25714) -Fix: explicitly cast some things to silence warnings on GCC 4.0
This commit is contained in:
@@ -2583,7 +2583,7 @@ struct IndustryCargoesWindow : public Window {
|
||||
delete lst;
|
||||
break;
|
||||
}
|
||||
int selected = (this->ind_cargo >= NUM_INDUSTRYTYPES) ? this->ind_cargo - NUM_INDUSTRYTYPES : -1;
|
||||
int selected = (this->ind_cargo >= NUM_INDUSTRYTYPES) ? (int)(this->ind_cargo - NUM_INDUSTRYTYPES) : -1;
|
||||
ShowDropDownList(this, lst, selected, WID_IC_CARGO_DROPDOWN, 0, true);
|
||||
break;
|
||||
}
|
||||
@@ -2600,7 +2600,7 @@ struct IndustryCargoesWindow : public Window {
|
||||
delete lst;
|
||||
break;
|
||||
}
|
||||
int selected = (this->ind_cargo < NUM_INDUSTRYTYPES) ? this->ind_cargo : -1;
|
||||
int selected = (this->ind_cargo < NUM_INDUSTRYTYPES) ? (int)this->ind_cargo : -1;
|
||||
ShowDropDownList(this, lst, selected, WID_IC_IND_DROPDOWN, 0, true);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user