From 4e3cf9cd8eb4602883339e5c9b9d4edcf05929d0 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Sun, 30 Mar 2014 23:08:54 +0200 Subject: MSVC helpfully provides warning C4310: cast truncates constant value Change-Id: I985216d7bade6cbb3a037b07fe44438543d63ba0 --- svl/source/misc/strmadpt.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svl') 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) -- cgit