X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FDecodeError.java;h=5f7d8809b8b3b98763ef0c3614ea6b262d94d2c4;hb=c6bac88847b7c09560af81f00ba8dd3c2ebe3a19;hp=dbf1fc88d164f483a48a38b544c1518a424a313f;hpb=0d48e557e83ef085cc92c2de63b9c81c061ce78c;p=ldk-java diff --git a/src/main/java/org/ldk/structs/DecodeError.java b/src/main/java/org/ldk/structs/DecodeError.java index dbf1fc88..5f7d8809 100644 --- a/src/main/java/org/ldk/structs/DecodeError.java +++ b/src/main/java/org/ldk/structs/DecodeError.java @@ -24,8 +24,8 @@ public class DecodeError extends CommonBase { */ public DecodeError clone() { long ret = bindings.DecodeError_clone(this.ptr); - if (ret >= 0 && ret < 1024) { return null; } - DecodeError ret_hu_conv = new DecodeError(null, ret); + if (ret >= 0 && ret <= 4096) { return null; } + DecodeError ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new DecodeError(null, ret); } ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; }