X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FRawDataPart.cs;fp=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FRawDataPart.cs;h=c63b214ad230c47da9efa99d8a4453eae5d27b60;hb=592c64eb658d92e314a2b983cea16cecf3882474;hp=681dde88a7e9063814676d1356c872dfc4fe6b22;hpb=12fdbefaac81d5b4be6bb67addd6dcd7c46a182b;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/RawDataPart.cs b/c_sharp/src/org/ldk/structs/RawDataPart.cs index 681dde88..c63b214a 100644 --- a/c_sharp/src/org/ldk/structs/RawDataPart.cs +++ b/c_sharp/src/org/ldk/structs/RawDataPart.cs @@ -31,7 +31,7 @@ public class RawDataPart : CommonBase { * generation time of the invoice */ public void set_timestamp(org.ldk.structs.PositiveTimestamp val) { - bindings.RawDataPart_set_timestamp(this.ptr, val == null ? 0 : val.ptr); + bindings.RawDataPart_set_timestamp(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -43,7 +43,7 @@ public class RawDataPart : CommonBase { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.RawDataPart b) { - bool ret = bindings.RawDataPart_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = bindings.RawDataPart_eq(this.ptr, b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); };