summaryrefslogtreecommitdiff
path: root/sal/osl/unx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-07-30 15:47:15 +0300
committerTor Lillqvist <tml@iki.fi>2012-07-30 16:14:16 +0300
commit9211f4ac413f7663e32fb5f5cdd15cf46cbc2d2c (patch)
treea078cc9fcaecb6757f14791dc1a11c8d86114cb8 /sal/osl/unx
parent6247f4889a8b8769c48f05691dcd8db514d0c444 (diff)
WaE: comparison is always false due to limited range of data type
Change-Id: I7147d6ab8433976cc0c76620db2a519f306a3fa9
Diffstat (limited to 'sal/osl/unx')
-rw-r--r--sal/osl/unx/file.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 3a5dac5f9741..536e1bf8a8b8 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -1552,7 +1552,7 @@ SAL_CALL osl_setFilePos (oslFileHandle Handle, sal_uInt32 uHow, sal_Int64 uOffse
nPos = sal::static_int_cast< off_t >(pImpl->getPos());
if ((0 > nOffset) && (-1*nOffset > nPos))
return osl_File_E_INVAL;
- if (g_limit_off_t < nPos + nOffset)
+ if (g_limit_off_t < (sal_Int64) nPos + nOffset)
return osl_File_E_OVERFLOW;
break;
@@ -1560,7 +1560,7 @@ SAL_CALL osl_setFilePos (oslFileHandle Handle, sal_uInt32 uHow, sal_Int64 uOffse
nPos = sal::static_int_cast< off_t >(pImpl->getSize());
if ((0 > nOffset) && (-1*nOffset > nPos))
return osl_File_E_INVAL;
- if (g_limit_off_t < nPos + nOffset)
+ if (g_limit_off_t < (sal_Int64) nPos + nOffset)
return osl_File_E_OVERFLOW;
break;