[PATCH] Xi: fix valuator alignment in DeepCopyDeviceClasses (#36119)
Daniel Stone
daniel at fooishbar.org
Tue Apr 12 01:58:57 PDT 2011
Hi,
On Tue, Apr 12, 2011 at 11:05:56AM +1000, Peter Hutterer wrote:
> + /* force alignment with double */
> + union align_u { ValuatorClassRec valc; double d; } *align;
Errr ... why not just allocate valc->axes separately from valc?
Neat trick though.
Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110412/2cf6a97a/attachment.pgp>
More information about the xorg-devel
mailing list