mirror of
https://github.com/corda/corda.git
synced 2025-06-19 23:53:52 +00:00
fixed abs() compilation for Android classpath on OSX
This commit is contained in:
@ -8,6 +8,9 @@
|
|||||||
There is NO WARRANTY for this software. See license.txt for
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
details. */
|
details. */
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
struct JavaVM;
|
struct JavaVM;
|
||||||
struct _JavaVM;
|
struct _JavaVM;
|
||||||
struct _JNIEnv;
|
struct _JNIEnv;
|
||||||
@ -1206,7 +1209,7 @@ extern "C" AVIAN_EXPORT int64_t JNICALL
|
|||||||
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)
|
Avian_java_lang_Math_abs__J(Thread*, object, uintptr_t* arguments)
|
||||||
{
|
{
|
||||||
return llabs(arguments[0]);
|
return llabs(static_cast<int64_t>(arguments[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" AVIAN_EXPORT int64_t JNICALL
|
extern "C" AVIAN_EXPORT int64_t JNICALL
|
||||||
|
Reference in New Issue
Block a user