fix lua51 bug

This commit is contained in:
ruki
2018-12-06 00:08:04 +08:00
parent 65769de2cb
commit e7a81277a4
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ function border:init(name, bounds)
view.init(self, name, bounds)
-- check bounds
assert(self:width() > 2 and self:height() > 2, string.format("%s: too small!", self))
assert(self:width() > 2 and self:height() > 2, string.format("%s: too small!", tostring(self)))
end
-- draw border

View File

@@ -43,7 +43,7 @@ function window:init(name, bounds, title, shadow)
panel.init(self, name, bounds)
-- check bounds
assert(self:width() > 4 and self:height() > 3, string.format("%s: too small!", self))
assert(self:width() > 4 and self:height() > 3, string.format("%s: too small!", tostring(self)))
-- insert shadow
if shadow then