diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-07-08 15:32:23 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-07-08 15:32:23 +0200 |
commit | 5f3b515c6d92f979f0b7afa946d550aade5478e4 (patch) | |
tree | 34e5d986ba1b694f59d9c5c5ccd29f0ec4ba717f /fastos | |
parent | 2e834663dbcef1d53894fa6dbf945bb5a038ca90 (diff) |
Cast it to get correct signedness.
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(); } |