[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / RawInvoice.java
index 1e17348dba847e1692211dc6dca7d8dce3f51117..052dca687b7c64833f85d49a1d2d0db012efa8ea 100644 (file)
@@ -40,9 +40,10 @@ public class RawInvoice extends CommonBase {
         * data part
         */
        public void set_data(RawDataPart val) {
-               bindings.RawInvoice_set_data(this.ptr, val == null ? 0 : val.ptr & ~1);
+               bindings.RawInvoice_set_data(this.ptr, val == null ? 0 : val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
+               this.ptrs_to.add(val);
        }
 
        /**
@@ -51,7 +52,7 @@ public class RawInvoice extends CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public boolean eq(RawInvoice b) {
-               boolean ret = bindings.RawInvoice_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
+               boolean ret = bindings.RawInvoice_eq(this.ptr, b == null ? 0 : b.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(b);
                this.ptrs_to.add(b);