瀏覽代碼

Stop overwriting results

clanker 2 周之前
父節點
當前提交
50a4edc512
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/lib/Json.vala

+ 3 - 1
src/lib/Json.vala

@@ -286,7 +286,9 @@ namespace InvercargillJson {
                 else if(node.get_value_type().is_a(typeof(int64))) {
                     result = node.get_int().to_string();
                 }
-                result = node.get_string();
+                else {
+                    result = node.get_string();
+                }
                 return true;
             }
             if(typeof(T).is_a(typeof(DateTime))) {