Skip to content

Commit 1bde5ca

Browse files
mfasDaironMann
authored andcommitted
Explicit cast to std::size_t
Necessary for compilation on macOS under clang
1 parent 086407f commit 1bde5ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common/include/SubTimeFrameFileReader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class SubTimeFrameFileReader : public ISubTimeFrameVisitor
118118
inline
119119
bool ignore_nbytes(const std::size_t pLen)
120120
{
121-
const std::size_t lToIgnore = std::min(pLen, mFileSize - mFileMapOffset);
121+
const std::size_t lToIgnore = std::min(pLen, std::size_t(mFileSize - mFileMapOffset));
122122
if (pLen != lToIgnore) {
123123
DDLOGF(fair::Severity::ERROR, "FileReader: request to ignore bytes beyond the file end. pos={} size={} len={}",
124124
mFileMapOffset, mFileSize, pLen);

0 commit comments

Comments
 (0)