Kaydet (Commit) 0d0b7947 authored tarafından Tor Lillqvist's avatar Tor Lillqvist Kaydeden (comit) Tor Lillqvist

WaE: implicit conversion changes signedness

üst 51c0a44e
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment