diff options
-rw-r--r-- | src/htslib.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |