summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-06-22 10:42:38 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-06-22 10:42:38 +0000
commitf27a5f58be10c36b5716f06663667ec40aebb294 (patch)
tree3957fdabeafd640fffe2cccb9ef87ca86dc5234c /src
parentd0d62c059867a54ba6c6631b269b1474d82e7018 (diff)
Fixed "comparison between signed and unsigned integer expressions"
Diffstat (limited to 'src')
-rw-r--r--src/htslib.h2
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;