summaryrefslogtreecommitdiff
path: root/basic/source/runtime
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-01-28 13:00:46 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-01-28 13:00:46 +0000
commita42c9b7f52299b745186995f53a2789f66a9f9c4 (patch)
treee618eb79b05a400a08603f22dc19aa125cc4d9a4 /basic/source/runtime
parent7671128a777d8e8afdddf0c41c7a65fa66287eff (diff)
INTEGRATION: CWS ab42 (1.77.26); FILE MERGED
2007/12/21 14:21:03 ab 1.77.26.1: #i81123# PATCH: signed/unsigned stuff for ppc
Diffstat (limited to 'basic/source/runtime')
-rw-r--r--basic/source/runtime/methods.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 2e41c85df22c..262102613035 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: methods.cxx,v $
*
- * $Revision: 1.77 $
+ * $Revision: 1.78 $
*
- * last change: $Author: vg $ $Date: 2007-09-20 15:55:04 $
+ * last change: $Author: vg $ $Date: 2008-01-28 14:00:46 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -943,7 +943,7 @@ RTLFUNC(Hex)
if ( pArg->IsInteger() )
snprintf( aBuffer, sizeof(aBuffer), "%X", pArg->GetInteger() );
else
- snprintf( aBuffer, sizeof(aBuffer), "%lX", pArg->GetLong() );
+ snprintf( aBuffer, sizeof(aBuffer), "%lX", static_cast<long unsigned int>(pArg->GetLong()) );
rPar.Get(0)->PutString( String::CreateFromAscii( aBuffer ) );
}
}
@@ -1347,7 +1347,7 @@ RTLFUNC(Oct)
if ( pArg->IsInteger() )
snprintf( aBuffer, sizeof(aBuffer), "%o", pArg->GetInteger() );
else
- snprintf( aBuffer, sizeof(aBuffer), "%lo", pArg->GetLong() );
+ snprintf( aBuffer, sizeof(aBuffer), "%lo", static_cast<long unsigned int>(pArg->GetLong()) );
rPar.Get(0)->PutString( String::CreateFromAscii( aBuffer ) );
}
}