Add handling for signed int64 type
[ldk-java] / src / main / java / org / ldk / structs / Result_InvoiceParseOrSemanticErrorZ.java
index 8197cbf92002fc2c8195df65c7b04f1d8a6e56e3..33765576ce9c58b1d9aa79069b967c8e777c141e 100644 (file)
@@ -45,7 +45,7 @@ public class Result_InvoiceParseOrSemanticErrorZ extends CommonBase {
        /**
         * Creates a new CResult_InvoiceParseOrSemanticErrorZ in the success state.
         */
-       public static Result_InvoiceParseOrSemanticErrorZ ok(Invoice o) {
+       public static Result_InvoiceParseOrSemanticErrorZ ok(org.ldk.structs.Invoice o) {
                long ret = bindings.CResult_InvoiceParseOrSemanticErrorZ_ok(o == null ? 0 : o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
@@ -57,11 +57,12 @@ public class Result_InvoiceParseOrSemanticErrorZ extends CommonBase {
        /**
         * Creates a new CResult_InvoiceParseOrSemanticErrorZ in the error state.
         */
-       public static Result_InvoiceParseOrSemanticErrorZ err(ParseOrSemanticError e) {
+       public static Result_InvoiceParseOrSemanticErrorZ err(org.ldk.structs.ParseOrSemanticError e) {
                long ret = bindings.CResult_InvoiceParseOrSemanticErrorZ_err(e.ptr);
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_InvoiceParseOrSemanticErrorZ ret_hu_conv = Result_InvoiceParseOrSemanticErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
                return ret_hu_conv;
        }