[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / GraphSyncError.java
index 67f4d2d9f9030f9f186b0cbd3d4ab78ba997f8ea..d5389fc5c6c34985a019b121c9dd5c9db461c5e1 100644 (file)
@@ -80,11 +80,12 @@ public class GraphSyncError extends CommonBase {
         * Utility method to constructs a new DecodeError-variant GraphSyncError
         */
        public static GraphSyncError decode_error(DecodeError a) {
-               long ret = bindings.GraphSyncError_decode_error(a == null ? 0 : a.ptr & ~1);
+               long ret = bindings.GraphSyncError_decode_error(a == null ? 0 : a.ptr);
                Reference.reachabilityFence(a);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.GraphSyncError ret_hu_conv = org.ldk.structs.GraphSyncError.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               ret_hu_conv.ptrs_to.add(a);
                return ret_hu_conv;
        }
 
@@ -92,11 +93,12 @@ public class GraphSyncError extends CommonBase {
         * Utility method to constructs a new LightningError-variant GraphSyncError
         */
        public static GraphSyncError lightning_error(LightningError a) {
-               long ret = bindings.GraphSyncError_lightning_error(a == null ? 0 : a.ptr & ~1);
+               long ret = bindings.GraphSyncError_lightning_error(a == null ? 0 : a.ptr);
                Reference.reachabilityFence(a);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.GraphSyncError ret_hu_conv = org.ldk.structs.GraphSyncError.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               ret_hu_conv.ptrs_to.add(a);
                return ret_hu_conv;
        }