diff options
author | Roland Scheidegger <sroland@vmware.com> | 2009-12-08 19:13:48 +0100 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2009-12-08 19:17:08 +0100 |
commit | ee1720b99dfb5964962f2346406a4e3e88374a68 (patch) | |
tree | cb07d1ad5ea1a76b262d15c4a47fff97290242cd /src/mesa/main/teximage.h | |
parent | 72362a5cd41d97b770980c28fe6719c556f12ab7 (diff) |
gallium: fix more potential strict aliasing issues
In particular, gcc man page warns that
union a_union {
int i;
double d;
};
int f() {
double d = 3.0;
return ((union a_union *) &d)->i;
}
"might" not be ok (why not?), even though it doesn't seem to generate
any warnings. Hence don't use this and do the extra step to actually use
assignment to get the values in/out of the union.
This changes parts of 3456f9149b3009fcfce80054759d05883d3c4ee5.
Diffstat (limited to 'src/mesa/main/teximage.h')
0 files changed, 0 insertions, 0 deletions