diff options
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/common/WPXSvInputStream.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<long>::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<long>::max)())) + if ((tmpPosition < 0) || (tmpPosition > LONG_MAX)) return -1; try |