summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/dp_persmap.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/deployment/dp_persmap.cxx b/desktop/source/deployment/dp_persmap.cxx
index 05cd002f6ab5..aab763165982 100644
--- a/desktop/source/deployment/dp_persmap.cxx
+++ b/desktop/source/deployment/dp_persmap.cxx
@@ -79,8 +79,8 @@ static OString encodeString( const OString& rStr)
// short circuit for the simple non-encoded case
while( --i >= 0)
{
- const sal_Char c = *(pChar++);
- if( (0x00 <= c) && (c <= 0x0F))
+ const unsigned char c = (unsigned char) *(pChar++);
+ if( c <= 0x0F )
break;
if( c == '%')
break;
@@ -93,8 +93,8 @@ static OString encodeString( const OString& rStr)
aEncStr.append( pChar - (nLen-i), nLen - i);
while( --i >= 0)
{
- sal_Char c = *(pChar++);
- if( (0x00 <= c) && (c <= 0x0F))
+ unsigned char c = (unsigned char) *(pChar++);
+ if( c <= 0x0F )
{
aEncStr.append( '%');
c += (c <= 0x09) ? '0' : 'A'-10;