Re: No UNSIGNED_BYTE in Any

2013-01-25 Thread Lionel Elie Mamane
On Thu, Jan 03, 2013 at 02:54:32PM +0100, Lubos Lunak wrote: > On Thursday 27 of December 2012, Lionel Elie Mamane wrote: >> The following code does not do what one would think: >> sal_uInt8 nValue = 255; >> Any aValue; >> aValue <<= nValue; >> aValue now contains a *BOOLEAN*. That's rather..

Re: No UNSIGNED_BYTE in Any

2013-01-08 Thread Stephan Bergmann
On 12/27/2012 03:14 PM, Lionel Elie Mamane wrote: Ideally, I'd like that we fix this in LibreOffice 4.1. The cleanest would be to add support for unsigned 8 bit integer in Any, which as far as I understand would entail: - adding typelib_TypeClass_UNSIGNED_BYTE to cppu/inc/typelib/typeclass.h

Re: No UNSIGNED_BYTE in Any

2013-01-03 Thread Lubos Lunak
On Thursday 27 of December 2012, Lionel Elie Mamane wrote: > Hi, > > The following code does not do what one would think: > > sal_uInt8 nValue = 255; > Any aValue; > aValue <<= nValue; > > aValue now contains a *BOOLEAN*. That's rather... surprising, and > could bite any of us one day. Why cou