diff options
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; } |