summaryrefslogtreecommitdiff
path: root/src/od.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-09-02 07:23:09 +0000
committerJim Meyering <jim@meyering.net>2002-09-02 07:23:09 +0000
commit680cd976cc1175d79e75f19efb60e760f0a596f2 (patch)
tree6872e35e7026f1307720dc2d05bc52cbf1b0b2ba /src/od.c
parentc6fcfa23be92401447063ef53f3bd7d7994692c8 (diff)
downloadcoreutils-680cd976cc1175d79e75f19efb60e760f0a596f2.tar.xz
(skip): Add a cast to avoid warning about comparison
between signed and unsigned.
Diffstat (limited to 'src/od.c')
-rw-r--r--src/od.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/od.c b/src/od.c
index a3836bb0f..48c9aaa23 100644
--- a/src/od.c
+++ b/src/od.c
@@ -1094,7 +1094,7 @@ skip (uintmax_t n_skip)
if (S_ISREG (file_stats.st_mode) && 0 <= file_stats.st_size)
{
- if (file_stats.st_size <= n_skip)
+ if ((uintmax_t) file_stats.st_size <= n_skip)
n_skip -= file_stats.st_size;
else
{