Hello Mike,

2011/10/6 Mike Hommey <m...@glandium.org>:
> That would waste a 64-bits word. The usual way to do it is to use
> unions:
> union {
>  PRUint64 dummy;
>  struct {
>    PRUint32 m0;
>    PRUint16 m1;
>    PRUint16 m2;
>  };
> };
>
> Mike

nsID 64-bit alignment issue was already tracked down:
https://bugzilla.mozilla.org/show_bug.cgi?id=660335.

>From what I understand, patch V3 performs struct alignment using GCC
or MSVC-specific keywords. Iceweasel 7.0.1-2 in current Debian
"Wheezy" Testing doesn't seem to include this patch (yet).

I'll apply it locally in order to check if other unaligned accesses
nevertheless surface.

     Émeric



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to