changeset 1139:2c53be7c9f9b draft

Can't test <0 on an unsigned, reported by Nathan McSween.
author Rob Landley <rob@landley.net>
date Sun, 08 Dec 2013 13:19:01 -0600
parents ecc409de9976
children ef0bf6560071
files toys/posix/od.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/toys/posix/od.c	Sat Dec 07 16:19:17 2013 -0600
+++ b/toys/posix/od.c	Sun Dec 08 13:19:01 2013 -0600
@@ -31,7 +31,8 @@
   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;