Repository: lucy
Updated Branches:
  refs/heads/master 829c6d0a4 -> d460538f2


Dump unknown objects as strings

Fixes the previous commit that made Nums work.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/2aa3da22
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/2aa3da22
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/2aa3da22

Branch: refs/heads/master
Commit: 2aa3da221df320d00ef7d36d126f09b46013bae0
Parents: 829c6d0
Author: Nick Wellnhofer <[email protected]>
Authored: Tue May 5 11:13:14 2015 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Tue May 5 11:13:14 2015 +0200

----------------------------------------------------------------------
 core/Lucy/Util/Freezer.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/2aa3da22/core/Lucy/Util/Freezer.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Util/Freezer.c b/core/Lucy/Util/Freezer.c
index 7e053fd..91e6b9c 100644
--- a/core/Lucy/Util/Freezer.c
+++ b/core/Lucy/Util/Freezer.c
@@ -383,8 +383,11 @@ Freezer_dump(Obj *obj) {
     else if (Obj_Is_A(obj, QUERY)) {
         return Query_Dump((Query*)obj);
     }
+    else if (Obj_Is_A(obj, NUM)) {
+        return Obj_Clone(obj);
+    }
     else {
-        return (Obj*)Obj_Clone(obj);
+        return (Obj*)Obj_To_String(obj);
     }
 }
 

Reply via email to