From ae3794c33e1dbc96551082a3886379bf517b8aae Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 15 Apr 2024 16:27:05 +0630 Subject: constexpr -> const in lexer.cpp Not much of an actual performance change, more semantic meaning for me. --- asm/lexer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'asm/lexer.cpp') diff --git a/asm/lexer.cpp b/asm/lexer.cpp index 82cf260..2042cc4 100644 --- a/asm/lexer.cpp +++ b/asm/lexer.cpp @@ -24,9 +24,9 @@ static_assert(NUMBER_OF_OPCODES == 98, "ERROR: Lexer is out of date"); using std::string, std::string_view, std::pair, std::make_pair; -constexpr auto VALID_SYMBOL = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV" - "WXYZ0123456789-_.:()%#$", - VALID_DIGIT = "0123456789", VALID_HEX = "0123456789abcdefABCDEF"; +const auto VALID_SYMBOL = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV" + "WXYZ0123456789-_.:()%#$", + VALID_DIGIT = "0123456789", VALID_HEX = "0123456789abcdefABCDEF"; bool is_char_in_s(char c, const char *s) { -- cgit v1.2.3-13-gbd6f