Re: JavaXPCOM: How to handle unsigned 8-bit values?
Javier Pedemonte <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <L82dna1m0cFUh7PbnZ2dnUVZ_r3inZ2d__28877.5599831299$1177426840$gmane$org@mozilla.org> |
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