[Kde-bindings] Ruby: various DBus int variants

Sylvain Sauvage Sylvain.L.Sauvage at free.fr
Tue Aug 3 19:02:47 UTC 2010


Sylvain Sauvage, mardi 3 août 2010, 20:57:41 CEST
>[…]
> It doesn’t crash here (Debian Sid, it’s almost up to date with
> the trunk).[…]

By the way:

>> a = Qt::Variant.fromValue( -1, "unsigned int" )
=> #<Qt::Variant:0x7fcf6cb64ed0 typeName=uint>
>> a.value
=> 4294967295

But:

a = Qt::Variant.fromValue( -1, "unsigned long long" )
=> #<Qt::Variant:0x7fcf6cb75d20 typeName=qulonglong>
>> a.value
=> -1

-- 
 Sylvain Sauvage



More information about the Kde-bindings mailing list