summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stgole.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/stgole.cxx')
-rw-r--r--sot/source/sdstor/stgole.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgole.cxx b/sot/source/sdstor/stgole.cxx
index 3ae8fe4209ec..bee4feb8842d 100644
--- a/sot/source/sdstor/stgole.cxx
+++ b/sot/source/sdstor/stgole.cxx
@@ -112,11 +112,11 @@ bool StgCompObjStream::Load()
if ( nLen1 > 0 )
{
// higher bits are ignored
- sal_uLong nStrLen = ::std::min( nLen1, sal_Int32(0xFFFE) );
+ sal_Int32 nStrLen = ::std::min( nLen1, sal_Int32(0xFFFE) );
std::unique_ptr<char[]> p(new char[ nStrLen+1 ]);
p[nStrLen] = 0;
- if (ReadBytes( p.get(), nStrLen ) == nStrLen)
+ if (static_cast<sal_Int32>(ReadBytes( p.get(), nStrLen )) == nStrLen)
{
//The encoding here is "ANSI", which is pretty useless seeing as
//the actual codepage used doesn't seem to be specified/stored