1
0
Fork 0

Fix 218f40e: Warning about 32-bit shift implicitly converted to 64 bits

pull/8455/head
SamuXarick 2021-01-10 18:51:48 +00:00 committed by Michael Lutz
parent f6abc81cf1
commit 6298d9221a
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@
{ {
if (!IsValidCargo(cargo_type)) return nullptr; if (!IsValidCargo(cargo_type)) return nullptr;
::SetDParam(0, 1 << cargo_type); ::SetDParam(0, 1ULL << cargo_type);
return GetString(STR_JUST_CARGO_LIST); return GetString(STR_JUST_CARGO_LIST);
} }
@ -80,4 +80,4 @@
{ {
if (!ScriptCargo::IsValidCargo(cargo_type)) return INVALID_DISTRIBUTION_TYPE; if (!ScriptCargo::IsValidCargo(cargo_type)) return INVALID_DISTRIBUTION_TYPE;
return (ScriptCargo::DistributionType)_settings_game.linkgraph.GetDistributionType(cargo_type); return (ScriptCargo::DistributionType)_settings_game.linkgraph.GetDistributionType(cargo_type);
} }