mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 18:09:03 -06:00
Removed bigint comparison metamethods (read below)
Use bigint.compare from now on
This commit is contained in:
parent
d0505251b3
commit
3ac39acd7a
@ -55,15 +55,6 @@ function bigint.new(num)
|
|||||||
__pow = function(lhs, rhs)
|
__pow = function(lhs, rhs)
|
||||||
return bigint.exponentiate(lhs, rhs)
|
return bigint.exponentiate(lhs, rhs)
|
||||||
end,
|
end,
|
||||||
__eq = function(lhs, rhs)
|
|
||||||
return bigint.compare(lhs, rhs, "==")
|
|
||||||
end,
|
|
||||||
__lt = function(lhs, rhs)
|
|
||||||
return bigint.compare(lhs, rhs, "<")
|
|
||||||
end,
|
|
||||||
__le = function(lhs, rhs)
|
|
||||||
return bigint.compare(lhs, rhs, "<=")
|
|
||||||
end,
|
|
||||||
__tostring = function()
|
__tostring = function()
|
||||||
return bigint.unserialize(self, "s")
|
return bigint.unserialize(self, "s")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user