[Libreoffice-commits] core.git: sal/osl
Caolán McNamara
caolanm at redhat.com
Fri Oct 20 11:19:19 UTC 2017
sal/osl/unx/file.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 991034aad06e7d2b6e8e00b7ccdd8f286b776da3
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Oct 20 10:35:08 2017 +0100
coverity#1419948 silence Operands don't affect result
Change-Id: I68c42f6d9c6cfda90446a07ecd6bbf02abb22af9
Reviewed-on: https://gerrit.libreoffice.org/43593
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 1a3259c654e7..d2bfc34ee3a5 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -1147,7 +1147,7 @@ oslFileError SAL_CALL osl_syncFile(oslFileHandle Handle)
const off_t MAX_OFF_T = std::numeric_limits< off_t >::max();
namespace {
-
+//coverity[result_independent_of_operands]
template<typename T> bool exceedsOffT(T n) { return n > MAX_OFF_T; }
}
More information about the Libreoffice-commits
mailing list