From 7e6b36bc2d332a3cb66b83116a393ac4728236d5 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Thu, 29 Dec 2022 07:51:16 +0100 Subject: Improve C89/90 compat --- source/test/unittests/bigint.test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/test/unittests/bigint.test.c') diff --git a/source/test/unittests/bigint.test.c b/source/test/unittests/bigint.test.c index 048bcca..260b0ec 100644 --- a/source/test/unittests/bigint.test.c +++ b/source/test/unittests/bigint.test.c @@ -4,7 +4,9 @@ #define KIT_TEST_FILE bigint #include "../../kit_test/test.h" +#if __STDC_VERSION__ >= 199901L static_assert(sizeof(bigint_t) == 256, "KIT_BIGINT_SIZE check"); +#endif TEST("bigint bin hex") { REQUIRE(bi_equal(HEX("10"), BIN("10000"))); @@ -77,7 +79,6 @@ TEST("bigint div") { REQUIRE(bi_equal(bi_div(bi_int32(3), bi_int32(-4)).remainder, bi_int32(3))); - REQUIRE( bi_equal(bi_div(HEX("100"), HEX("10")).quotient, HEX("10"))); -- cgit v1.2.3