llabs call fixed

This commit is contained in:
Ilya Mizus 2015-06-24 17:49:56 +03:00
parent fe6f72d16e
commit 2c7e3960d6

View File

@ -1209,7 +1209,8 @@ extern "C" AVIAN_EXPORT int64_t JNICALL
extern "C" AVIAN_EXPORT int64_t JNICALL
Avian_java_lang_Math_abs__J(Thread*, object, uintptr_t* arguments)
{
return llabs(static_cast<int64_t>(arguments[0]));
int64_t v; memcpy(&v, arguments, 8);
return llabs(v);
}
extern "C" AVIAN_EXPORT int64_t JNICALL