From 73fe21cc691988eba072b8b0903237b09cda0614 Mon Sep 17 00:00:00 2001 From: tiye Date: Thu, 19 Dec 2024 01:46:03 +0800 Subject: [PATCH] upgrade parser; tag 0.0.4 --- moon.mod.json | 4 ++-- src/lib/edn.mbt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/moon.mod.json b/moon.mod.json index 0dc7410..ada6e5d 100644 --- a/moon.mod.json +++ b/moon.mod.json @@ -1,8 +1,8 @@ { "name": "tiye/cirru-edn", - "version": "0.0.3", + "version": "0.0.4", "deps": { - "tiye/cirru-parser": "0.0.9" + "tiye/cirru-parser": "0.0.10" }, "readme": "README.md", "repository": "https://github.com/Cirru/cirru-edn.mbt", diff --git a/src/lib/edn.mbt b/src/lib/edn.mbt index 0151d3f..fcedc88 100644 --- a/src/lib/edn.mbt +++ b/src/lib/edn.mbt @@ -62,7 +62,7 @@ pub fn compare(self : Edn, right : Edn) -> Int { (Edn::Nil, Edn::Nil) => 0 (Edn::Nil, _) => -1 (_, Edn::Nil) => 1 - (Edn::Bool(a), Edn::Bool(b)) => a.op_compare(b) + (Edn::Bool(a), Edn::Bool(b)) => a.compare(b) (Edn::Bool(_), _) => -1 (_, Edn::Bool(_)) => 1 (Edn::Number(a), Edn::Number(b)) => a.compare(b)