Fix C2x use of static_assert

This commit is contained in:
ISSOtm
2020-08-18 16:53:31 +02:00
parent ac011fe69f
commit 71a0a42cfb
2 changed files with 3 additions and 2 deletions

View File

@@ -234,7 +234,7 @@ static struct KeywordMapping {
#define LEXER_BUF_SIZE 42 /* TODO: determine a sane value for this */
/* This caps the size of buffer reads, and according to POSIX, passing more than SSIZE_MAX is UB */
static_assert(LEXER_BUF_SIZE <= SSIZE_MAX);
static_assert(LEXER_BUF_SIZE <= SSIZE_MAX, "Lexer buffer size is too large");
struct Expansion {
struct Expansion *firstChild;