aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/posix/xargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/xargs.c b/toys/posix/xargs.c
index 12af9125..39d78ef5 100644
--- a/toys/posix/xargs.c
+++ b/toys/posix/xargs.c
@@ -161,7 +161,7 @@ void xargs_main(void)
data = handle_entries(data, NULL);
if (!data) continue;
if (data == (char *)2) done++;
- if ((long)data <= 2) data = 0;
+ if ((unsigned long)data <= 2) data = 0;
else data = xstrdup(data);
break;