diff options
Diffstat (limited to 'src/cargomonitor.h')
-rw-r--r-- | src/cargomonitor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cargomonitor.h b/src/cargomonitor.h index 9a6a0c44d..31053c46c 100644 --- a/src/cargomonitor.h +++ b/src/cargomonitor.h @@ -48,8 +48,8 @@ enum CargoCompanyBits { CCB_COMPANY_LENGTH = 4, ///< Number of bits of the company field. }; -assert_compile(NUM_CARGO <= (1 << CCB_CARGO_TYPE_LENGTH)); -assert_compile(MAX_COMPANIES <= (1 << CCB_COMPANY_LENGTH)); +static_assert(NUM_CARGO <= (1 << CCB_CARGO_TYPE_LENGTH)); +static_assert(MAX_COMPANIES <= (1 << CCB_COMPANY_LENGTH)); /** |