diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-03-30 23:08:54 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-03-30 23:08:54 +0200 |
commit | 4e3cf9cd8eb4602883339e5c9b9d4edcf05929d0 (patch) | |
tree | e20ccf6f873284b4c65d221eda267b1f4ca4a2b7 /svl | |
parent | 0dd6d4ed6ce66cdff14688d7acdf81992e86e64f (diff) |
MSVC helpfully provides warning C4310: cast truncates constant value
Change-Id: I985216d7bade6cbb3a037b07fe44438543d63ba0
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/misc/strmadpt.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx index bc7eaac93ca2..8023efb476c4 100644 --- a/svl/source/misc/strmadpt.cxx +++ b/svl/source/misc/strmadpt.cxx @@ -449,7 +449,7 @@ sal_uLong SvInputStream::GetData(void * pData, sal_uLong nSize) return 0; } // check if a truncated STREAM_SEEK_TO_END was passed - assert(m_nSeekedFrom != (sal_uInt64)(sal_uInt32)STREAM_SEEK_TO_END); + assert(m_nSeekedFrom != SAL_MAX_UINT32); sal_uInt32 nRead = 0; if (m_xSeekable.is()) { @@ -551,7 +551,7 @@ void SvInputStream::FlushData() sal_uInt64 SvInputStream::SeekPos(sal_uInt64 const nPos) { // check if a truncated STREAM_SEEK_TO_END was passed - assert(nPos != (sal_uInt64)(sal_uInt32)STREAM_SEEK_TO_END); + assert(nPos != SAL_MAX_UINT32); if (open()) { if (nPos == STREAM_SEEK_TO_END) |