aboutsummaryrefslogtreecommitdiff
path: root/asm/main.cpp
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-14 17:17:51 +0630
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-14 17:17:51 +0630
commit86e9d51ab0b9ed2c5ccd1cf5f06fa3f3448c8f31 (patch)
treee6e7cf15301538fbe1c925814409d658649ee3db /asm/main.cpp
parent86aca9a596a4c0b7436f3c1169cd3884b9082206 (diff)
downloadovm-86e9d51ab0b9ed2c5ccd1cf5f06fa3f3448c8f31.tar.gz
ovm-86e9d51ab0b9ed2c5ccd1cf5f06fa3f3448c8f31.tar.bz2
ovm-86e9d51ab0b9ed2c5ccd1cf5f06fa3f3448c8f31.zip
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++.
Diffstat (limited to 'asm/main.cpp')
-rw-r--r--asm/main.cpp2
1 files changed, 1 insertions, 1 deletions
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<int>(lerr);
goto end;
}
else