[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_COption_MonitorEventZDecodeErrorZ.java
index 4a4163970aaee0c279d67e3a355faaeb849dc714..9b7c8713f8ee541f1c835f83b72b96ee44f065f3 100644 (file)
@@ -57,10 +57,11 @@ public class Result_COption_MonitorEventZDecodeErrorZ extends CommonBase {
         * Creates a new CResult_COption_MonitorEventZDecodeErrorZ in the error state.
         */
        public static Result_COption_MonitorEventZDecodeErrorZ err(DecodeError e) {
-               long ret = bindings.CResult_COption_MonitorEventZDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
+               long ret = bindings.CResult_COption_MonitorEventZDecodeErrorZ_err(e == null ? 0 : e.ptr);
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_COption_MonitorEventZDecodeErrorZ ret_hu_conv = Result_COption_MonitorEventZDecodeErrorZ.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(e);
                return ret_hu_conv;
        }