Fixed unused variable warning on mac os.

This commit is contained in:
Petri Häkkinen 2021-11-18 11:39:55 +02:00
parent 3ed5b6313c
commit acc22608b8

View file

@ -1027,13 +1027,14 @@ static int luauF_vector(lua_State* L, StkId res, TValue* arg0, int nresults, Stk
double x = nvalue(arg0);
double y = nvalue(args);
double z = nvalue(args + 1);
double w = 0.0;
#if LUA_VECTOR_SIZE == 4
w = nvalue(args + 2);
double w = nvalue(args + 2);
setvvalue(res, float(x), float(y), float(z), float(w));
#else
setvvalue(res, float(x), float(y), float(z), 0.0f);
#endif
setvvalue(res, float(x), float(y), float(z), float(w));
return 1;
}