table.unpack() is now used if unpack() is not available.

This commit is contained in:
rxi 2014-03-29 00:18:56 +00:00
parent 89931c1ad8
commit 9bf2d24ee2

View File

@ -10,7 +10,7 @@
local lume = { _version = "1.2.1" }
local pairs, ipairs = pairs, ipairs
local type, assert, unpack = type, assert, unpack
local type, assert, unpack = type, assert, unpack or table.unpack
local tostring, tonumber = tostring, tonumber
local math_floor = math.floor
local math_ceil = math.ceil