From 86e9d51ab0b9ed2c5ccd1cf5f06fa3f3448c8f31 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 14 Apr 2024 17:17:51 +0630 Subject: enum -> enum class in lexer This makes enum elements scoped which is actually quite useful as I prefer the namespacing that enum's give in C++. --- asm/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'asm/main.cpp') diff --git a/asm/main.cpp b/asm/main.cpp index a168af1..51600cb 100644 --- a/asm/main.cpp +++ b/asm/main.cpp @@ -100,7 +100,7 @@ int main(int argc, const char *argv[]) } std::cerr << file_name << ":" << line << ":" << col << ":" << lerr_as_cstr(lerr) << std::endl; - ret = 255 - lerr; + ret = 255 - static_cast(lerr); goto end; } else -- cgit v1.2.3-13-gbd6f