Re: JavaXPCOM: How to handle unsigned 8-bit values?
Javier Pedemonte <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.oji |
|---|---|
| Message-ID | <[email protected]> |
Michal Ceresna wrote: > I would even suggest also to not promote PRUint8[] arrays. Yes, I have a test build now that sets both 'octet' and 'PRUint8' to byte. There is actually a bug in the currently shipping code where I treat 'PRUint8' and 'octet' differently (only one gets promoted), but it is not handled accordingly when marshalling parameters. Sylvain Ferriol wrote: > but only with arrays (of octets or PRUint8) Hmm, that is an interesting idea. So any stand-alone 'octet' or 'PRUint8' values would get promoted to a short, but arrays would become 'byte[]'. I'll have to think about that. Michal, what's your take on this? Thanks... javier pedemonte