Skip to content

Commit 8f2e773

Browse files
committed
Boolean should be ffi_type_uint32.
1 parent 3a5787b commit 8f2e773

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

native/dispatch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ dispatch(JNIEnv *env, void* func, jint flags, jobjectArray args,
484484
}
485485
else if ((*env)->IsInstanceOf(env, arg, classBoolean)) {
486486
c_args[i].i = (*env)->GetBooleanField(env, arg, FID_Boolean_value);
487-
arg_types[i] = &ffi_type_sint32;
487+
arg_types[i] = &ffi_type_uint32;
488488
arg_values[i] = &c_args[i].i;
489489
}
490490
else if ((*env)->IsInstanceOf(env, arg, classByte)) {

0 commit comments

Comments
 (0)