summaryrefslogtreecommitdiff
path: root/basic/source/runtime
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2010-12-15 09:17:40 +0000
committerNoel Power <noel.power@novell.com>2010-12-15 09:17:40 +0000
commitc2553e86af652f80c8e5dae0795e23d69d6cc2d8 (patch)
tree691b992ea729d7e17da49e55811bf28f6ff09c31 /basic/source/runtime
parent493bea7486f5239b2c35a51369f23f7ef815226d (diff)
enable lcl_Read/writeSbxVariable for SbxSALINT64/SbxSALUINT64 typesfeature/currency-64bit
Diffstat (limited to 'basic/source/runtime')
-rw-r--r--basic/source/runtime/methods1.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx
index 54768cc918..36af58b98d 100644
--- a/basic/source/runtime/methods1.cxx
+++ b/basic/source/runtime/methods1.cxx
@@ -885,15 +885,12 @@ BOOL lcl_WriteSbxVariable( const SbxVariable& rVar, SvStream* pStrm,
*pStrm << (USHORT)SbxLONG; // VarType Id
*pStrm << rVar.GetLong();
break;
-#if IMPLEMENTATION_READY
case SbxSALINT64:
case SbxSALUINT64:
if( bIsVariant )
*pStrm << (USHORT)SbxSALINT64; // VarType Id
- //TODO fix truncating cast with new stream method or 2 part print
- *pStrm << (sal_Int32)rVar.GetInt64();
+ *pStrm << (sal_uInt64)rVar.GetInt64();
break;
-#endif
case SbxSINGLE:
if( bIsVariant )
*pStrm << (USHORT)eType; // VarType Id
@@ -995,17 +992,14 @@ BOOL lcl_ReadSbxVariable( SbxVariable& rVar, SvStream* pStrm,
rVar.PutLong( aInt );
}
break;
-#if IMPLEMENTATION_READY
case SbxSALINT64:
case SbxSALUINT64:
{
- sal_Int32 aInt;
- //TODO fix incorrect use of 32bit type with new stream method in tools
+ sal_uInt32 aInt;
*pStrm >> aInt;
rVar.PutInt64( (sal_Int64)aInt );
}
break;
-#endif
case SbxSINGLE:
{
float nS;