projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pass array type, not subty to primitive_arr_*_hu for more context
[ldk-java]
/
java_strings.py
diff --git
a/java_strings.py
b/java_strings.py
index d3b3800d9283a9ad17b0ea19e9d6449ee90ba9db..6308ed518dd795e953f7ced3c3bdca265631fc75 100644
(file)
--- a/
java_strings.py
+++ b/
java_strings.py
@@
-702,11
+702,12
@@
import javax.annotation.Nullable;
def cleanup_converted_native_array(self, ty_info, arr_name):
return None
def cleanup_converted_native_array(self, ty_info, arr_name):
return None
- def primitive_arr_from_hu(self, mapped_ty, fixed_len, arr_name):
+ def primitive_arr_from_hu(self, arr_ty, fixed_len, arr_name):
+ mapped_ty = arr_ty.subty
if fixed_len is not None:
return ("InternalUtils.check_arr_len(" + arr_name + ", " + fixed_len + ")", "")
return None
if fixed_len is not None:
return ("InternalUtils.check_arr_len(" + arr_name + ", " + fixed_len + ")", "")
return None
- def primitive_arr_to_hu(self,
primitive
_ty, fixed_len, arr_name, conv_name):
+ def primitive_arr_to_hu(self,
arr
_ty, fixed_len, arr_name, conv_name):
return None
def java_arr_ty_str(self, elem_ty_str):
return None
def java_arr_ty_str(self, elem_ty_str):