X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FTwoTuple_OutPointScriptZ.java;h=a63afed274ab0298e7d88fcfb514de4b14aa67ae;hb=32692e00046b7ec16b6a2e20bd54800b2b48d4c0;hp=a16beaaca92c7985912800d82422e9288b6462a1;hpb=bd77123c0c67bbf8dfc2c1326fadca583220dda1;p=ldk-java diff --git a/src/main/java/org/ldk/structs/TwoTuple_OutPointScriptZ.java b/src/main/java/org/ldk/structs/TwoTuple_OutPointScriptZ.java index a16beaac..a63afed2 100644 --- a/src/main/java/org/ldk/structs/TwoTuple_OutPointScriptZ.java +++ b/src/main/java/org/ldk/structs/TwoTuple_OutPointScriptZ.java @@ -24,7 +24,7 @@ public class TwoTuple_OutPointScriptZ extends CommonBase { */ public OutPoint get_a() { long ret = bindings.C2Tuple_OutPointScriptZ_get_a(this.ptr); - if (ret < 1024) { return null; } + if (ret >= 0 && ret < 1024) { return null; } OutPoint ret_hu_conv = new OutPoint(null, ret); ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; @@ -44,7 +44,7 @@ public class TwoTuple_OutPointScriptZ extends CommonBase { */ public TwoTuple_OutPointScriptZ clone() { long ret = bindings.C2Tuple_OutPointScriptZ_clone(this.ptr); - if (ret < 1024) { return null; } + if (ret >= 0 && ret < 1024) { return null; } TwoTuple_OutPointScriptZ ret_hu_conv = new TwoTuple_OutPointScriptZ(null, ret); ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; @@ -55,7 +55,7 @@ public class TwoTuple_OutPointScriptZ extends CommonBase { */ public static TwoTuple_OutPointScriptZ of(OutPoint a, byte[] b) { long ret = bindings.C2Tuple_OutPointScriptZ_new(a == null ? 0 : a.ptr & ~1, b); - if (ret < 1024) { return null; } + if (ret >= 0 && ret < 1024) { return null; } TwoTuple_OutPointScriptZ ret_hu_conv = new TwoTuple_OutPointScriptZ(null, ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv;