Compare commits

..

2 Commits

Author SHA1 Message Date
cc4da3a4c4 [buildcore] Map aarch64 to arm64 in util.get_arch
All checks were successful
Build / build (push) Successful in 2m56s
2024-12-14 21:05:56 -06:00
1bc050026f [ox/std] Fix compiler warning 2024-12-14 21:02:33 -06:00
2 changed files with 3 additions and 1 deletions

View File

@ -35,4 +35,6 @@ def get_arch() -> str:
arch = platform.machine().lower()
if arch == 'amd64':
arch = 'x86_64'
elif arch == 'aarch64':
arch = 'arm64'
return arch

View File

@ -32,7 +32,7 @@ ox::Result<char> StreamReader::peek() const noexcept {
try {
char c{};
m_strm.get(c);
auto const ok = c != EOF;
auto const ok = c != static_cast<char>(EOF);
if (ok && m_strm.unget()) [[unlikely]] {
return ox::Error(1, "Unable to unget character");
}