From 70872c29d14c86f96e68563d776708845489b0a6 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sun, 15 Dec 2024 10:34:47 -0500 Subject: [PATCH] correction to Specifier codegen --- base/components/gen/especifier.hpp | 2 +- base/helpers/base_codegen.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/components/gen/especifier.hpp b/base/components/gen/especifier.hpp index f75f94d..bfbcdd1 100644 --- a/base/components/gen/especifier.hpp +++ b/base/components/gen/especifier.hpp @@ -39,7 +39,7 @@ enum Specifier : u32 inline Str spec_to_str( Specifier type ) { - local_persist Str lookup[26] = { + local_persist Str lookup[] = { { "INVALID", sizeof( "INVALID" ) - 1 }, { "consteval", sizeof( "consteval" ) - 1 }, { "constexpr", sizeof( "constexpr" ) - 1 }, diff --git a/base/helpers/base_codegen.hpp b/base/helpers/base_codegen.hpp index 1a405f3..47293fc 100644 --- a/base/helpers/base_codegen.hpp +++ b/base/helpers/base_codegen.hpp @@ -237,7 +237,7 @@ CodeBody gen_especifier( char const* path, bool use_c_definition = false ) Str spec_to_str( Specifier type ) { local_persist - Str lookup[] = { + Str lookup[] = { };