mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 12:22:39 -03:00
Fix JNI for C instead of C++
(because apparently there is a significant difference...)
This commit is contained in:
parent
194eea065f
commit
6df016fb20
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
JNIEXPORT jint JNICALL Java_org_bitcoin_NativeSecp256k1_secp256k1_1ecdsa_1verify
|
||||
(JNIEnv* env, jclass classObject, jobject byteBufferObject)
|
||||
{
|
||||
unsigned char* data = (unsigned char*) env->GetDirectBufferAddress(byteBufferObject);
|
||||
unsigned char* data = (unsigned char*) (*env)->GetDirectBufferAddress(env, byteBufferObject);
|
||||
int sigLen = *((int*)(data + 32));
|
||||
int pubLen = *((int*)(data + 32 + 4));
|
||||
|
||||
|
|
Loading…
Reference in a new issue