X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FParseOrSemanticError.cs;fp=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FParseOrSemanticError.cs;h=d1f27fd37e0a1c85f77e3554d71ddd339f7549a9;hb=8de7213fbf663ff60322896282dad51e8ab2f001;hp=c534f89077e1f2ea81acef97ecf9b18c9379689d;hpb=afc50e5d491a11364849383b75a8f939df703bac;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/ParseOrSemanticError.cs b/c_sharp/src/org/ldk/structs/ParseOrSemanticError.cs index c534f890..d1f27fd3 100644 --- a/c_sharp/src/org/ldk/structs/ParseOrSemanticError.cs +++ b/c_sharp/src/org/ldk/structs/ParseOrSemanticError.cs @@ -105,9 +105,11 @@ public class ParseOrSemanticError : CommonBase { * Get the string representation of a ParseOrSemanticError object */ public string to_str() { - string ret = bindings.ParseOrSemanticError_to_str(this.ptr); + long ret = bindings.ParseOrSemanticError_to_str(this.ptr); GC.KeepAlive(this); - return ret; + if (ret >= 0 && ret <= 4096) { return null; } + string ret_conv = InternalUtils.decodeString(ret); + return ret_conv; } }