diff options
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/newlib/libc/machine/riscv/strlen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/newlib/libc/machine/riscv/strlen.c b/newlib/newlib/libc/machine/riscv/strlen.c index 29f0d1c..c0ef38f 100644 --- a/newlib/newlib/libc/machine/riscv/strlen.c +++ b/newlib/newlib/libc/machine/riscv/strlen.c @@ -36,6 +36,7 @@ size_t strlen(const char* str) if (c0 == 0) return ret + 4 - sl; if (c1 == 0) return ret + 5 - sl; if (c2 == 0) return ret + 6 - sl; - return ret + 7 - sl; + + return ret + 7 - sl; #endif /* not PREFER_SIZE_OVER_SPEED */ } |