aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-24 16:43:06 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-24 16:43:56 -0700
commitb1c0446a3c65e8e22a9ecfd9d24213a2b9eac22b (patch)
treecfd6658dc826f6d8fc15e64d34bc3a2736b59fb0 /nomsu_compiler.lua
parent6014c5aa439d4b4ae0b97af64825371a86e78c2c (diff)
Updating file stuff for better compatibility with Lua 5.2 and fixing
some bugs. Also updated README to provide more compatibility info and list Lua5.2+ as a requirement.
Diffstat (limited to 'nomsu_compiler.lua')
-rw-r--r--nomsu_compiler.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua
index 56bd1e8..62a71fd 100644
--- a/nomsu_compiler.lua
+++ b/nomsu_compiler.lua
@@ -471,7 +471,7 @@ do
source = nil
end
local lua_string = tostring(lua)
- local run_lua_fn, err = load(lua_string, nil and tostring(source or lua.source), "t", self)
+ local run_lua_fn, err = load(lua_string, tostring(source or lua.source), "t", self)
if not run_lua_fn then
local line_numbered_lua = concat((function()
local _accum_0 = { }