scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 8fc237b9471c89826685d7268f77eb83796e4dfd
parent d67bece3068f58790f65eac4aea562746655c76b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 11 Jan 2025 13:33:43 +0100

libc/amd64: Fix +1 error in strchr.s

Strchr must be able to find '\0' at the end of the string.

Diffstat:
Msrc/libc/arch/amd64/strchr.s | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libc/arch/amd64/strchr.s b/src/libc/arch/amd64/strchr.s @@ -12,7 +12,7 @@ strchr: repne scasb - leaq -1(%rdi),%rcx + leaq 0(%rdi),%rcx subq %r8,%rcx cmp %rdi,%rsi /* set ZF to 0 */