Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/dok.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2015-05-04 23:41:52 +0300
committerSam Gross <colesbury@gmail.com>2015-05-04 23:41:52 +0300
commitabaea88f6cbb13b5a78e87e0f091b5969537df49 (patch)
treee4da0b072abc466b377bc66ff899aa697acef582
parent6e84960badcb5da597c8334e9cd63985da8c187b (diff)
Support Lua 5.2
-rw-r--r--inline.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/inline.lua b/inline.lua
index 3a9bc8a..48eccc3 100644
--- a/inline.lua
+++ b/inline.lua
@@ -38,6 +38,9 @@ local mdsearchpaths = splitpackagepath()
local knownpkg = {}
+-- Lua 5.2 compatibility
+local unpack = unpack or table.unpack
+
dok.inline = {}
dok.colors = {