From f27a5f58be10c36b5716f06663667ec40aebb294 Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Sun, 22 Jun 2014 10:42:38 +0000 Subject: Fixed "comparison between signed and unsigned integer expressions" --- src/htslib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/htslib.h') diff --git a/src/htslib.h b/src/htslib.h index b10c0f4..d89e68d 100644 --- a/src/htslib.h +++ b/src/htslib.h @@ -541,7 +541,7 @@ HTS_STATIC int compare_mime(httrackp * opt, const char *mime, const char *file, // returns (size_t) -1 upon error static HTS_UNUSED size_t off_t_to_size_t(off_t o) { - if (o >= 0 && o < ( (size_t) -1 ) / 2) { + if (o >= 0 && o < (off_t) ( (size_t) -1 ) / 2) { return (size_t) o; } else { return (size_t) -1; -- cgit v1.2.3