From 0a8952bc3b4426dcc45679fa70833a5166e027e6 Mon Sep 17 00:00:00 2001 From: William Bell Date: Fri, 12 Apr 2024 16:14:46 +0100 Subject: [PATCH] Update version number to 3.0.5 and fix code inconsistency --- src/main.go | 4 ++-- src/operations.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.go b/src/main.go index e960600..0a79f53 100644 --- a/src/main.go +++ b/src/main.go @@ -10,8 +10,8 @@ var Args = os.Args[1:] type stack = []ArObject -const VERSION = "3.0.4-3" -const VERSION_NUM = 2 +const VERSION = "3.0.5" +const VERSION_NUM = 3 func newscope() ArObject { return Map(anymap{}) diff --git a/src/operations.go b/src/operations.go index 8a37437..6c0ce9b 100644 --- a/src/operations.go +++ b/src/operations.go @@ -82,7 +82,7 @@ func parseOperations(code UNPARSEcode, index int, codelines []UNPARSEcode) (oper operation: i, values: values, line: code.line, - code: code.code, + code: code.realcode, path: code.path, }, true, ArErr{}, totalStep } @@ -680,7 +680,7 @@ func equals(a any, b any, o operationType, stack stack, stacklevel int) (bool, A } } if x, ok := b.(ArObject); ok { - if y, ok := x.obj["__GreaterThanEqual__"]; ok { + if y, ok := x.obj["__Equal__"]; ok { val, err := runCall( call{ y,