diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-22 10:42:38 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-22 10:42:38 +0000 |
commit | f27a5f58be10c36b5716f06663667ec40aebb294 (patch) | |
tree | 3957fdabeafd640fffe2cccb9ef87ca86dc5234c /src/htslib.h | |
parent | d0d62c059867a54ba6c6631b269b1474d82e7018 (diff) |
Fixed "comparison between signed and unsigned integer expressions"
Diffstat (limited to 'src/htslib.h')
-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; |