diff options
author | Chris Dearman <chris.dearman@imgtec.com> | 2013-05-29 19:50:42 -0700 |
---|---|---|
committer | Chris Dearman <chris.dearman@imgtec.com> | 2013-05-29 19:50:42 -0700 |
commit | 0a08bbe70ef43ed29cba241e95aa5c338349b021 (patch) | |
tree | 3468e5a3065c3588adab1bd4079d33d053c9e880 /luni/src/main/native | |
parent | 5a77ade75d48732b5c46a08223f3538dc899be47 (diff) | |
download | libcore-0a08bbe70ef43ed29cba241e95aa5c338349b021.zip libcore-0a08bbe70ef43ed29cba241e95aa5c338349b021.tar.gz libcore-0a08bbe70ef43ed29cba241e95aa5c338349b021.tar.bz2 |
Use correct signature for NativeBN_BN_is_prime_ex
Change-Id: Ic08c4142542c5bd28e964a22270beed13297b9d6
Diffstat (limited to 'luni/src/main/native')
-rw-r--r-- | luni/src/main/native/java_math_NativeBN.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/luni/src/main/native/java_math_NativeBN.cpp b/luni/src/main/native/java_math_NativeBN.cpp index f415e1b..158dfac 100644 --- a/luni/src/main/native/java_math_NativeBN.cpp +++ b/luni/src/main/native/java_math_NativeBN.cpp @@ -527,10 +527,10 @@ static void NativeBN_BN_generate_prime_ex(JNIEnv* env, jclass, jlong ret, int bi throwExceptionIfNecessary(env); } -static jboolean NativeBN_BN_is_prime_ex(JNIEnv* env, jclass, jlong p, int nchecks, BN_GENCB* cb) { +static jboolean NativeBN_BN_is_prime_ex(JNIEnv* env, jclass, jlong p, int nchecks, jlong cb) { if (!oneValidHandle(env, p)) return JNI_FALSE; Unique_BN_CTX ctx(BN_CTX_new()); - return BN_is_prime_ex(toBigNum(p), nchecks, ctx.get(), cb); + return BN_is_prime_ex(toBigNum(p), nchecks, ctx.get(), reinterpret_cast<BN_GENCB*>(cb)); } static JNINativeMethod gMethods[] = { |