gallium: use copy_token() function to avoid type punning/aliasing problems
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 12 Sep 2008 17:40:31 +0000 (11:40 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 12 Sep 2008 17:40:31 +0000 (11:40 -0600)
commitbd34b8a4febb7aadec0545250fd8b6b06ad774e8
treebeaa9d1ae9fb1769b2244cebd360c167f261e1a5
parent73193b7735eca10fd6a3bd7f43cdee72d3976175
gallium: use copy_token() function to avoid type punning/aliasing problems

This fixes parsing errors seen with optimized builds on PPC (which led to crashes).
The memcpy() is heavy-handed, but works.  A lighter uint assignment could
be used on x86...
src/gallium/auxiliary/tgsi/tgsi_parse.c