aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-12-08 13:19:01 -0600
committerRob Landley <rob@landley.net>2013-12-08 13:19:01 -0600
commit0eb0a81c0c8e2ea99320cc42574766081052af86 (patch)
treee7da7e84e20bf57add2ff73fa1b164c2880dc924
parent2023d5804ac842b70b32b86f642e409b028df1da (diff)
downloadtoybox-0eb0a81c0c8e2ea99320cc42574766081052af86.tar.gz
Can't test <0 on an unsigned, reported by Nathan McSween.
-rw-r--r--toys/posix/od.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/posix/od.c b/toys/posix/od.c
index 6853a9b1..6c7cc94d 100644
--- a/toys/posix/od.c
+++ b/toys/posix/od.c
@@ -31,7 +31,8 @@ GLOBALS(
long max_count;
long jump_bytes;
- unsigned types, leftover, star, address_idx;
+ int address_idx;
+ unsigned types, leftover, star;
char *buf;
uint64_t bufs[4]; // force 64-bit alignment
off_t pos;