summaryrefslogtreecommitdiff
path: root/src/gfx_type.h
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2020-12-27 10:44:22 +0000
committerCharles Pigott <charlespigott@googlemail.com>2020-12-27 10:55:42 +0000
commit860c270c73048b4930ac8cbebcd60be746eb9782 (patch)
treea88a8acb208cf426ae8fac05dda202c57b59426a /src/gfx_type.h
parent395a5d9991b500c681ff384f8d3b4e153e687abb (diff)
downloadopenttd-860c270c73048b4930ac8cbebcd60be746eb9782.tar.xz
Codechange: Replace assert_compile macro with static_assert
Diffstat (limited to 'src/gfx_type.h')
-rw-r--r--src/gfx_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx_type.h b/src/gfx_type.h
index ab802c45e..3b9f04d9e 100644
--- a/src/gfx_type.h
+++ b/src/gfx_type.h
@@ -199,7 +199,7 @@ union Colour {
}
};
-assert_compile(sizeof(Colour) == sizeof(uint32));
+static_assert(sizeof(Colour) == sizeof(uint32));
/** Available font sizes */