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-12-01 01:29:27 +0300
committerSam Gross <colesbury@gmail.com>2015-12-01 01:29:27 +0300
commit4da6407d33dac2c5ccc360ac742f1435c78c8674 (patch)
treefdd3898fe9c3041e6dfadff7dcdd17fb111cf7d6
parentcdef0eb010fb5588eab885fbad24ea840874d4a4 (diff)
Fix for Lua 5.2
In Lua 5.2, loadstring is deprecated in favor of load.
-rw-r--r--inline.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/inline.lua b/inline.lua
index 162f868..dce34ca 100644
--- a/inline.lua
+++ b/inline.lua
@@ -40,6 +40,7 @@ local knownpkg = {}
-- Lua 5.2 compatibility
local unpack = unpack or table.unpack
+local loadstring = loadstring or load
dok.inline = {}