diff options
Diffstat (limited to 'src/targ.cff')
| -rw-r--r-- | src/targ.cff | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/targ.cff b/src/targ.cff index 583a733..fefd10a 100644 --- a/src/targ.cff +++ b/src/targ.cff @@ -36,7 +36,7 @@ extern fn triple2targ(triple *const u8) *const u8 { delim ? triple[0::delim - triple] : spanz(triple); ); let rest = arch.#ptr + arch.#len; - defmacro archp(s) [ (strncmp(s, arch.#ptr, arch.#len) == 0) ] + defmacro archp(s) [ (arch.#len == (s.#len-1) and memcmp(arch.#ptr, s, arch.#len) == 0) ] defmacro restp(s) [ (strstr(rest, s) != #null) ] switch { case archp("x86_64") and !restp("windows"); return "amd64-sysv"; |