[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / AcceptChannel.java
index aee61b8f7ca45bf4553b85d0d16b6372bdac2a93..cbcfd2041cc995942c1b16fa74a0a60dd4538f1d 100644 (file)
@@ -301,9 +301,10 @@ public class AcceptChannel extends CommonBase {
         * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
         */
        public void set_channel_type(@Nullable ChannelTypeFeatures val) {
-               bindings.AcceptChannel_set_channel_type(this.ptr, val == null ? 0 : val.ptr & ~1);
+               bindings.AcceptChannel_set_channel_type(this.ptr, val == null ? 0 : val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
+               this.ptrs_to.add(val);
        }
 
        long clone_ptr() {