summaryrefslogtreecommitdiff
path: root/src/utils/type.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/type.c')
-rw-r--r--src/utils/type.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/utils/type.c b/src/utils/type.c
index dea08ef..a46be5a 100644
--- a/src/utils/type.c
+++ b/src/utils/type.c
@@ -3,6 +3,8 @@
#include <assert.h>
void checkTypes() {
+ assert(sizeof(bool) == (8 / 8));
+
assert(sizeof(i8) == (8 / 8));
assert(sizeof(i16) == (16 / 8));
assert(sizeof(i32) == (32 / 8));
@@ -13,9 +15,10 @@ void checkTypes() {
assert(sizeof(u32) == (32 / 8));
assert(sizeof(u64) == (64 / 8));
+#ifdef FLOAT_16_SUPPORT
assert(sizeof(f16) == (16 / 8));
+#endif
assert(sizeof(f32) == (32 / 8));
assert(sizeof(f64) == (64 / 8));
assert(sizeof(f128) == (128 / 8));
}
-