X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FGossipSync.java;h=51d14b639f491c5aeb9bf8b9ee66fc799e03676b;hb=9760d533f7ecac9bb7a8249f9b557e3f995c276d;hp=7c62cc7a2bcdd55b8e76327156e12bdea399f68e;hpb=f6d7282fcf6324519ea1fe4b584c8d02c95acd9e;p=ldk-java diff --git a/src/main/java/org/ldk/structs/GossipSync.java b/src/main/java/org/ldk/structs/GossipSync.java index 7c62cc7a..51d14b63 100644 --- a/src/main/java/org/ldk/structs/GossipSync.java +++ b/src/main/java/org/ldk/structs/GossipSync.java @@ -71,7 +71,7 @@ public class GossipSync extends CommonBase { * Utility method to constructs a new P2P-variant GossipSync */ public static GossipSync p2_p(P2PGossipSync a) { - long ret = bindings.GossipSync_p2_p(a == null ? 0 : a.ptr & ~1); + long ret = bindings.GossipSync_p2_p(a == null ? 0 : a.ptr); Reference.reachabilityFence(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.GossipSync ret_hu_conv = org.ldk.structs.GossipSync.constr_from_ptr(ret); @@ -84,7 +84,7 @@ public class GossipSync extends CommonBase { * Utility method to constructs a new Rapid-variant GossipSync */ public static GossipSync rapid(RapidGossipSync a) { - long ret = bindings.GossipSync_rapid(a == null ? 0 : a.ptr & ~1); + long ret = bindings.GossipSync_rapid(a == null ? 0 : a.ptr); Reference.reachabilityFence(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.GossipSync ret_hu_conv = org.ldk.structs.GossipSync.constr_from_ptr(ret);