Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / RawDataPart.java
index 637e344d1378013a1b24b6c52ce16d1f919b594c..d89766b70cccfd9ebbcb883cb58fd59b0dc2f98a 100644 (file)
@@ -24,7 +24,7 @@ public class RawDataPart extends CommonBase {
         */
        public PositiveTimestamp get_timestamp() {
                long ret = bindings.RawDataPart_get_timestamp(this.ptr);
-               if (ret < 1024) { return null; }
+               if (ret >= 0 && ret < 1024) { return null; }
                PositiveTimestamp ret_hu_conv = new PositiveTimestamp(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
@@ -35,7 +35,6 @@ public class RawDataPart extends CommonBase {
         */
        public void set_timestamp(PositiveTimestamp val) {
                bindings.RawDataPart_set_timestamp(this.ptr, val == null ? 0 : val.ptr & ~1);
-               this.ptrs_to.add(val);
        }
 
        /**
@@ -54,7 +53,7 @@ public class RawDataPart extends CommonBase {
         */
        public RawDataPart clone() {
                long ret = bindings.RawDataPart_clone(this.ptr);
-               if (ret < 1024) { return null; }
+               if (ret >= 0 && ret < 1024) { return null; }
                RawDataPart ret_hu_conv = new RawDataPart(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;