diff options
author | rubidium <rubidium@openttd.org> | 2014-10-21 16:58:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-10-21 16:58:15 +0000 |
commit | d1429cd936330ca2b3fb0da6a3de799f51fb0907 (patch) | |
tree | 582d6084c33ac51e0d835d81893520c14eeeeb6d /src/script/api | |
parent | b1216055db4af47574f8f302eebbbfe6c8a46c90 (diff) | |
download | openttd-d1429cd936330ca2b3fb0da6a3de799f51fb0907.tar.xz |
(svn r27026) -Fix: some (older-ish) GCC compiler warnings
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/script_company.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/script_company.cpp b/src/script/api/script_company.cpp index a5fecf8ea..a1f40c5e1 100644 --- a/src/script/api/script_company.cpp +++ b/src/script/api/script_company.cpp @@ -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); |