From 51f7c69f4f07a00363c84097744f1a2bbcdc309a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 10 Oct 2014 10:44:56 +0100 Subject: coverity#1240260 Operands don't affect result see can we silence these false positives coverity#1240259 Operands don't affect result coverity#1240254 Operands don't affect result coverity#1240264 Operands don't affect result coverity#1240267 Operands don't affect result Change-Id: Ieca40474c231e33a516b70f7693346ac73babd61 --- writerperfect/source/common/WPXSvInputStream.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'writerperfect') diff --git a/writerperfect/source/common/WPXSvInputStream.cxx b/writerperfect/source/common/WPXSvInputStream.cxx index 1f8d57543186..3c22f9d3b341 100644 --- a/writerperfect/source/common/WPXSvInputStream.cxx +++ b/writerperfect/source/common/WPXSvInputStream.cxx @@ -504,7 +504,7 @@ long WPXSvInputStreamImpl::tell() else { sal_Int64 tmpPosition = mxSeekable->getPosition(); - if ((tmpPosition < 0) || (tmpPosition > (std::numeric_limits::max)())) + if ((tmpPosition < 0) || (tmpPosition > LONG_MAX)) return -1L; return (long)tmpPosition; } @@ -516,7 +516,7 @@ int WPXSvInputStreamImpl::seek(long offset) return -1; sal_Int64 tmpPosition = mxSeekable->getPosition(); - if ((tmpPosition < 0) || (tmpPosition > (std::numeric_limits::max)())) + if ((tmpPosition < 0) || (tmpPosition > LONG_MAX)) return -1; try -- cgit v1.2.3