diff options
Diffstat (limited to 'fastos')
-rw-r--r-- | fastos/src/vespa/fastos/linux_file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fastos/src/vespa/fastos/linux_file.cpp b/fastos/src/vespa/fastos/linux_file.cpp index 21bbfacfe97..fadef5fd0c6 100644 --- a/fastos/src/vespa/fastos/linux_file.cpp +++ b/fastos/src/vespa/fastos/linux_file.cpp @@ -322,7 +322,7 @@ bool FastOS_Linux_File::DirectIOPadding (int64_t offset, size_t length, size_t &padBefore, size_t &padAfter) { if (_directIOEnabled) { - if (offset+length > _cachedSize) { + if (int64_t(offset+length) > _cachedSize) { // _cachedSize is not really trustworthy, so if we suspect it is not correct, we correct it. _cachedSize = GetSize(); } |