From: Jim Meyering Date: Mon, 2 Sep 2002 07:23:09 +0000 (+0000) Subject: (skip): Add a cast to avoid warning about comparison X-Git-Tag: v4.5.2~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=680cd976cc1175d79e75f19efb60e760f0a596f2;p=thirdparty%2Fcoreutils.git (skip): Add a cast to avoid warning about comparison between signed and unsigned. --- diff --git a/src/od.c b/src/od.c index a3836bb0f3..48c9aaa233 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 {