aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/program.h4
-rw-r--r--src/data.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/program.h b/include/program.h
index dc538f9c..418c2039 100644
--- a/include/program.h
+++ b/include/program.h
@@ -431,8 +431,8 @@ extern const char bc_program_esc_seqs[];
#define BC_PROG_LBLS_SIZE (sizeof(bc_program_inst_lbls) / sizeof(void*))
#define BC_PROG_LBLS_ASSERT \
- static_assert(BC_PROG_LBLS_SIZE == BC_INST_INVALID + 1,\
- "bc_program_inst_lbls[] mismatches the instructions")
+ _Static_assert(BC_PROG_LBLS_SIZE == BC_INST_INVALID + 1,\
+ "bc_program_inst_lbls[] mismatches the instructions")
#else // BC_C11
diff --git a/src/data.c b/src/data.c
index c08fe8a1..16fe6395 100644
--- a/src/data.c
+++ b/src/data.c
@@ -884,8 +884,8 @@ const size_t bc_lex_kws_len = sizeof(bc_lex_kws) / sizeof(BcLexKeyword);
// redefined_kws in BcVm, is correct. If it's correct under C11, it will be
// correct under C99, and I did not know any other way of ensuring they remained
// synchronized.
-static_assert(sizeof(bc_lex_kws) / sizeof(BcLexKeyword) == BC_LEX_NKWS,
- "BC_LEX_NKWS is wrong.");
+_Static_assert(sizeof(bc_lex_kws) / sizeof(BcLexKeyword) == BC_LEX_NKWS,
+ "BC_LEX_NKWS is wrong.");
#endif // BC_C11