Merge commit '8c39be2b0682ec31b0c62623a8a921467b09cfe1' into pre-macro

This commit is contained in:
Gary Talent 2024-12-18 23:40:19 -06:00
commit 2a286a64ca
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");
}