Repository: lucy Updated Branches: refs/heads/master b30f5c2be -> 7a02b3a14
Adjust for To_Bool removal Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/e1ff79ee Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/e1ff79ee Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/e1ff79ee Branch: refs/heads/master Commit: e1ff79ee548e4732d0ec22fff7b3f50d2001d491 Parents: b30f5c2 Author: Nick Wellnhofer <wellnho...@aevum.de> Authored: Thu Nov 26 13:57:02 2015 +0100 Committer: Nick Wellnhofer <wellnho...@aevum.de> Committed: Sat Jan 9 15:46:05 2016 +0100 ---------------------------------------------------------------------- core/Lucy/Util/Json.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/e1ff79ee/core/Lucy/Util/Json.c ---------------------------------------------------------------------- diff --git a/core/Lucy/Util/Json.c b/core/Lucy/Util/Json.c index 2d26695..c74f64f 100644 --- a/core/Lucy/Util/Json.c +++ b/core/Lucy/Util/Json.c @@ -765,10 +765,10 @@ Json_obj_to_bool(Obj *obj) { retval = Bool_Get_Value((Boolean*)obj); } else if (Obj_is_a(obj, INTEGER)) { - retval = Int_To_Bool((Integer*)obj); + retval = Int_Get_Value((Integer*)obj) != 0; } else if (Obj_is_a(obj, FLOAT)) { - retval = Float_To_Bool((Float*)obj); + retval = Float_Get_Value((Float*)obj) != 0.0; } else if (Obj_is_a(obj, STRING)) { retval = (Str_To_I64((String*)obj) != 0);