X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FCommonBase.java;h=604fb5acbb65f6f92051955d058b856d2cc61bba;hb=c6bac88847b7c09560af81f00ba8dd3c2ebe3a19;hp=1794158b79f8e19164e3c2a838a0926c7fd13d62;hpb=a442b8532ad57aed1fc740141189899b39a15d79;p=ldk-java diff --git a/src/main/java/org/ldk/structs/CommonBase.java b/src/main/java/org/ldk/structs/CommonBase.java index 1794158b..604fb5ac 100644 --- a/src/main/java/org/ldk/structs/CommonBase.java +++ b/src/main/java/org/ldk/structs/CommonBase.java @@ -3,5 +3,5 @@ import java.util.LinkedList; class CommonBase { long ptr; LinkedList ptrs_to = new LinkedList(); - protected CommonBase(long ptr) { this.ptr = ptr; } + protected CommonBase(long ptr) { assert ptr < 0 || ptr > 4096; this.ptr = ptr; } }