[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / ParseOrSemanticError.cs
index c534f89077e1f2ea81acef97ecf9b18c9379689d..d1f27fd37e0a1c85f77e3554d71ddd339f7549a9 100644 (file)
@@ -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;
        }
 
 }