aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/string/strlen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/string/strlen.c b/libc/string/strlen.c
index 37a1b78..95b99d2 100644
--- a/libc/string/strlen.c
+++ b/libc/string/strlen.c
@@ -15,7 +15,7 @@
size_t
strlen(const char *s)
{
- int len = 0;
+ size_t len = 0;
while (*s != 0) {
len += 1;