summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-04-23 23:38:18 +0300
committerTor Lillqvist <tlillqvist@suse.com>2012-04-24 12:22:58 +0300
commit0d0b7947aa7c7e9b1dafee8b99211b43f2ca1668 (patch)
tree114568b84b0e1cb06c8dbf4c664bcb3ef0bc3b99 /cppu
parent51c0a44e91a04b791de51678d3374903a5252d88 (diff)
WaE: implicit conversion changes signedness
Diffstat (limited to 'cppu')
-rw-r--r--cppu/inc/com/sun/star/uno/Any.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/cppu/inc/com/sun/star/uno/Any.hxx b/cppu/inc/com/sun/star/uno/Any.hxx
index 56a782e37fd0..fbb3d5bfe6e5 100644
--- a/cppu/inc/com/sun/star/uno/Any.hxx
+++ b/cppu/inc/com/sun/star/uno/Any.hxx
@@ -306,7 +306,7 @@ inline sal_Bool SAL_CALL operator >>= ( const Any & rAny, sal_uInt16 & value ) S
switch (rAny.pType->eTypeClass)
{
case typelib_TypeClass_BYTE:
- value = * reinterpret_cast< const sal_Int8 * >( rAny.pData );
+ value = (sal_uInt16)( * reinterpret_cast< const sal_Int8 * >( rAny.pData ) );
return sal_True;
case typelib_TypeClass_SHORT:
case typelib_TypeClass_UNSIGNED_SHORT:
@@ -345,10 +345,10 @@ inline sal_Bool SAL_CALL operator >>= ( const Any & rAny, sal_uInt32 & value ) S
switch (rAny.pType->eTypeClass)
{
case typelib_TypeClass_BYTE:
- value = * reinterpret_cast< const sal_Int8 * >( rAny.pData );
+ value = (sal_uInt32)( * reinterpret_cast< const sal_Int8 * >( rAny.pData ) );
return sal_True;
case typelib_TypeClass_SHORT:
- value = * reinterpret_cast< const sal_Int16 * >( rAny.pData );
+ value = (sal_uInt32)( * reinterpret_cast< const sal_Int16 * >( rAny.pData ) );
return sal_True;
case typelib_TypeClass_UNSIGNED_SHORT:
value = * reinterpret_cast< const sal_uInt16 * >( rAny.pData );
@@ -396,16 +396,16 @@ inline sal_Bool SAL_CALL operator >>= ( const Any & rAny, sal_uInt64 & value ) S
switch (rAny.pType->eTypeClass)
{
case typelib_TypeClass_BYTE:
- value = * reinterpret_cast< const sal_Int8 * >( rAny.pData );
+ value = (sal_uInt64)( * reinterpret_cast< const sal_Int8 * >( rAny.pData ) );
return sal_True;
case typelib_TypeClass_SHORT:
- value = * reinterpret_cast< const sal_Int16 * >( rAny.pData );
+ value = (sal_uInt64)( * reinterpret_cast< const sal_Int16 * >( rAny.pData ) );
return sal_True;
case typelib_TypeClass_UNSIGNED_SHORT:
value = * reinterpret_cast< const sal_uInt16 * >( rAny.pData );
return sal_True;
case typelib_TypeClass_LONG:
- value = * reinterpret_cast< const sal_Int32 * >( rAny.pData );
+ value = (sal_uInt64)( * reinterpret_cast< const sal_Int32 * >( rAny.pData ) );
return sal_True;
case typelib_TypeClass_UNSIGNED_LONG:
value = * reinterpret_cast< const sal_uInt32 * >( rAny.pData );