From b8820ded5987966e818762c0f76e0681f7346017 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 22 May 2019 19:27:06 +0100 Subject: [PATCH] Fix static asserts in OrderDestinationRefcountMapKey --- src/order_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/order_base.h b/src/order_base.h index 0ca811f382..a5e81163ba 100644 --- a/src/order_base.h +++ b/src/order_base.h @@ -35,8 +35,8 @@ extern bool _order_destination_refcount_map_valid; inline uint32 OrderDestinationRefcountMapKey(DestinationID dest, CompanyID cid, OrderType order_type, VehicleType veh_type) { - static_assert(sizeof(dest) == 2); - static_assert(OT_END <= 16); + assert_compile(sizeof(dest) == 2); + assert_compile(OT_END <= 16); return (((uint32) dest) << 16) | (((uint32) cid) << 8) | (((uint32) order_type) << 4) | ((uint32) veh_type); }