Removed __idiv metamethod from color lib for LuaJIT compatibility.
This commit is contained in:
@@ -29,9 +29,6 @@ local metatable = {
|
|||||||
__pow = function( c, v )
|
__pow = function( c, v )
|
||||||
return Color:new( c.r ^ v, c.g ^ v, c.b ^ v, c.a ^ v )
|
return Color:new( c.r ^ v, c.g ^ v, c.b ^ v, c.a ^ v )
|
||||||
end,
|
end,
|
||||||
__idiv = function( c, v )
|
|
||||||
return Color:new( c.r // v, c.g // v, c.b // v, c.a // v )
|
|
||||||
end,
|
|
||||||
__len = function()
|
__len = function()
|
||||||
return 4
|
return 4
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user