fix memcpy argument order in Avian_avian_Singleton_getLong

This commit is contained in:
Joel Dice 2009-10-20 13:38:05 -06:00
parent e06f0407cb
commit f27ecaa199

View File

@ -1066,7 +1066,7 @@ Avian_avian_Singleton_getLong
(Thread* t, object, uintptr_t* arguments)
{
int64_t v;
memcpy(&singletonValue
(t, reinterpret_cast<object>(arguments[0]), arguments[1]), &v, 8);
memcpy(&v, &singletonValue
(t, reinterpret_cast<object>(arguments[0]), arguments[1]), 8);
return v;
}