mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +00:00
4828934e50
Fixes bad code generation when assigning to vector.x in a function with no parameters and the vector is the first local var.
29 lines
233 B
R
29 lines
233 B
R
vector
|
|
foo (float x, float y, float z)
|
|
{
|
|
vector v;
|
|
v.x = x;
|
|
v.y = y;
|
|
v.z = z;
|
|
return v;
|
|
}
|
|
|
|
float w;
|
|
float h;
|
|
|
|
vector
|
|
bar (void)
|
|
{
|
|
vector pos;
|
|
|
|
pos.x = w;
|
|
pos.y = h;
|
|
pos.z = 0;
|
|
return pos;
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return 0;
|
|
}
|