Changeset - r21874:8f8d62638daa
[Not reviewed]
master
0 2 0
rubidium - 10 years ago 2014-10-21 16:58:15
rubidium@openttd.org
(svn r27026) -Fix: some (older-ish) GCC compiler warnings
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/script/api/script_company.cpp
Show inline comments
 
@@ -230,8 +230,8 @@
 
{
 
	EnforcePrecondition(false, ScriptObject::GetCompany() == OWNER_DEITY);
 
	EnforcePrecondition(false, expenses_type < (ExpensesType)::EXPENSES_END);
 
	EnforcePrecondition(false, delta >= INT32_MIN);
 
	EnforcePrecondition(false, delta <= INT32_MAX);
 
	EnforcePrecondition(false, (int64)delta >= INT32_MIN);
 
	EnforcePrecondition(false, (int64)delta <= INT32_MAX);
 

	
 
	company = ResolveCompanyID(company);
 
	EnforcePrecondition(false, company != COMPANY_INVALID);
src/settings_gui.cpp
Show inline comments
 
@@ -290,7 +290,7 @@ struct GameOptionsWindow : Window {
 
				list = new DropDownList();
 
				*selected_index = ZOOM_LVL_OUT_4X - _gui_zoom;
 
				const StringID *items = _gui_zoom_dropdown;
 
				for (uint i = 0; *items != INVALID_STRING_ID; items++, i++) {
 
				for (int i = 0; *items != INVALID_STRING_ID; items++, i++) {
 
					*list->Append() = new DropDownListStringItem(*items, i, _settings_client.gui.zoom_min > ZOOM_LVL_OUT_4X - i);
 
				}
 
				break;
0 comments (0 inline, 0 general)