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:
authorSoumith Chintala <soumith@gmail.com>2015-05-04 23:51:08 +0300
committerSoumith Chintala <soumith@gmail.com>2015-05-04 23:51:08 +0300
commite312c3288f76579a883eb6d0d0f09997c6c431ce (patch)
treee4da0b072abc466b377bc66ff899aa697acef582
parent6e84960badcb5da597c8334e9cd63985da8c187b (diff)
parentabaea88f6cbb13b5a78e87e0f091b5969537df49 (diff)
Merge pull request #7 from colesbury/lua52
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 = {