Update version number to 3.0.5 and fix code inconsistency

This commit is contained in:
2024-04-12 16:14:46 +01:00
parent a8fb5d4c1f
commit 0a8952bc3b
2 changed files with 4 additions and 4 deletions

View File

@@ -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{})

View File

@@ -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,