mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
start removing newNumber and number types from the code.
This commit is contained in:
@@ -66,7 +66,7 @@ func makeGlobal() ArObject {
|
||||
a[0] = ArValidToAny(a[0])
|
||||
switch x := a[0].(type) {
|
||||
case number:
|
||||
if x.Denom().Cmp(one.Denom()) != 0 {
|
||||
if x.Denom().Cmp(_one_Rat.Denom()) != 0 {
|
||||
return nil, ArErr{TYPE: "Type Error", message: "Cannot convert non-integer to hex", EXISTS: true}
|
||||
}
|
||||
n := x.Num().Int64()
|
||||
|
||||
Reference in New Issue
Block a user