Avoid using EXPAND_AND_STR with external defines

There is no guarantee that they are purely numeric, use the values instead
This commit is contained in:
ISSOtm
2021-01-22 08:37:40 +01:00
parent 09f16bda4a
commit 993c034039
2 changed files with 4 additions and 5 deletions

View File

@@ -435,7 +435,7 @@ static void readAssertion(FILE *file, struct Assertion *assert,
char const *fileName, uint32_t i,
struct Section *fileSections[], struct FileStackNode fileNodes[])
{
char assertName[sizeof("Assertion #" EXPAND_AND_STR(UINT32_MAX))];
char assertName[sizeof("Assertion #4294967295")]; // UINT32_MAX
snprintf(assertName, sizeof(assertName), "Assertion #%" PRIu32, i);