mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 12:34:35 +03:00
Don't leave a trailing white-space in cpu brand name
This commit is contained in:
@@ -145,8 +145,7 @@ namespace asmjit {
|
|||||||
//! ### Supported Backends / Architectures
|
//! ### Supported Backends / Architectures
|
||||||
//!
|
//!
|
||||||
//! - **X86** and **X86_64** - Both 32-bit and 64-bit backends tested on CI.
|
//! - **X86** and **X86_64** - Both 32-bit and 64-bit backends tested on CI.
|
||||||
//! - **AArch64** - AArch64 backend is currently only partially tested (there is no native AArch64 runner to test
|
//! - **AArch64** - Tested on CI (Native Apple runners and Linux emulated via QEMU).
|
||||||
//! AsmJit Builder/Compiler).
|
|
||||||
//!
|
//!
|
||||||
//! ### Static Builds and Embedding
|
//! ### Static Builds and Embedding
|
||||||
//!
|
//!
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ static ASMJIT_FAVOR_SIZE void simplifyCpuBrand(char* s) noexcept {
|
|||||||
if (!c)
|
if (!c)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (!(c == ' ' && (prev == '@' || s[1] == ' ' || s[1] == '@'))) {
|
if (!(c == ' ' && (prev == '@' || s[1] == ' ' || s[1] == '@' || s[1] == '\0'))) {
|
||||||
*d++ = c;
|
*d++ = c;
|
||||||
prev = c;
|
prev = c;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user