diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-29 09:34:37 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-29 09:34:37 +0000 |
commit | c64b8d6e884bc587749a3363fc4311a48a4b7b0c (patch) | |
tree | d446672bbe5cbdbfaa2a3079314763149208f8ab /src/htslib.h | |
parent | 194ebad4c6f4d259d5b2fd7349246ea19493cb04 (diff) |
Fixes.
Diffstat (limited to 'src/htslib.h')
-rw-r--r-- | src/htslib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/htslib.h b/src/htslib.h index d56b379..84c5666 100644 --- a/src/htslib.h +++ b/src/htslib.h @@ -615,6 +615,7 @@ HTS_STATIC int compare_mime(httrackp * opt, const char *mime, const char *file, // returns (size_t) -1 upon error static size_t off_t_to_size_t(off_t o) { if (o >= 0 && o < ( (size_t) -1 ) / 2) { + return (size_t) o; } else { return (size_t) -1; } |