aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/sort.c b/toys/posix/sort.c
index 49e68c74..ed7c36ce 100644
--- a/toys/posix/sort.c
+++ b/toys/posix/sort.c
@@ -384,7 +384,7 @@ void sort_main(void)
// Output result
for (idx = 0; idx<TT.linecount; idx++) {
char *s = TT.lines[idx];
- int i = strlen(s);
+ unsigned i = strlen(s);
if (!(toys.optflags&FLAG_z)) s[i] = '\n';
xwrite(fd, s, i+1);