summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2011-10-04 09:39:32 +0300
committerTor Lillqvist <tlillqvist@suse.com>2011-10-04 10:26:58 +0300
commitb558502c96a779e9bd46b71903c7537da0d07f17 (patch)
tree24d74ea87b9145cbfaa54d7ae448e1483ddf908b /tools
parentwe do not need the counter now (diff)
downloadcore-b558502c96a779e9bd46b71903c7537da0d07f17.tar.gz
core-b558502c96a779e9bd46b71903c7537da0d07f17.zip
WaE: conversion from 'sal_Int32' to 'sal_uInt16', possible loss of data
Diffstat (limited to 'tools')
-rw-r--r--tools/bootstrp/prj.cxx2
-rw-r--r--tools/source/generic/config.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/bootstrp/prj.cxx b/tools/bootstrp/prj.cxx
index 391f4a6b142f..0f15bb7265d5 100644
--- a/tools/bootstrp/prj.cxx
+++ b/tools/bootstrp/prj.cxx
@@ -62,7 +62,7 @@ rtl::OString SimpleConfig::getNext()
return rtl::OString();
rtl::OString aString = comphelper::string::getToken(aStringBuffer, 0, '\t');
- aStringBuffer.Erase(0, aString.getLength()+1);
+ aStringBuffer.Erase(0, (sal_uInt16)aString.getLength()+1);
aStringBuffer.EraseLeadingChars( '\t' );
diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx
index d72ed8a29f88..6b89751d4fde 100644
--- a/tools/source/generic/config.cxx
+++ b/tools/source/generic/config.cxx
@@ -453,9 +453,9 @@ static sal_uInt8* ImplGetConfigBuffer( const ImplConfigData* pData, sal_uIntPtr&
ImplKeyData* pKey;
ImplGroupData* pGroup;
unsigned int nBufLen;
- sal_uInt16 nValueLen;
- sal_uInt16 nKeyLen;
- sal_uInt16 nLineEndLen;
+ sal_uInt32 nValueLen;
+ sal_uInt32 nKeyLen;
+ sal_uInt32 nLineEndLen;
if ( pData->meLineEnd == LINEEND_CR )
{