summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-17 18:28:04 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-17 18:28:04 +0100
commit0a505576e5220113dfbcc140b70659f822a17f44 (patch)
tree280367fc1f1319f5e36dfbeebd38fcdaa9b3596f /lib
parentMerge branch 'master' into unreachable (diff)
downloadcuberite-0a505576e5220113dfbcc140b70659f822a17f44.tar
cuberite-0a505576e5220113dfbcc140b70659f822a17f44.tar.gz
cuberite-0a505576e5220113dfbcc140b70659f822a17f44.tar.bz2
cuberite-0a505576e5220113dfbcc140b70659f822a17f44.tar.lz
cuberite-0a505576e5220113dfbcc140b70659f822a17f44.tar.xz
cuberite-0a505576e5220113dfbcc140b70659f822a17f44.tar.zst
cuberite-0a505576e5220113dfbcc140b70659f822a17f44.zip
Diffstat (limited to 'lib')
-rw-r--r--lib/tolua++/src/bin/enumerate_lua.h2
-rw-r--r--lib/tolua++/src/bin/lua/enumerate.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/tolua++/src/bin/enumerate_lua.h b/lib/tolua++/src/bin/enumerate_lua.h
index f7285dc9a..f460f297b 100644
--- a/lib/tolua++/src/bin/enumerate_lua.h
+++ b/lib/tolua++/src/bin/enumerate_lua.h
@@ -113,7 +113,7 @@ static const unsigned char lua_enumerate_lua[] = {
0x0a, 0x09, 0x69, 0x66, 0x20, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c,
0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d,
0x73, 0x5b, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x5d,
- 0x20, 0x7e, 0x3d, 0x20, 0x6e, 0x69, 0x6c, 0x20, 0x74, 0x68, 0x65, 0x6e,
+ 0x20, 0x3d, 0x3d, 0x20, 0x6e, 0x69, 0x6c, 0x20, 0x74, 0x68, 0x65, 0x6e,
0x0a, 0x09, 0x09, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x6f,
0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x5b,
0x73, 0x65, 0x6c, 0x66, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x5d, 0x20, 0x3d,
diff --git a/lib/tolua++/src/bin/lua/enumerate.lua b/lib/tolua++/src/bin/lua/enumerate.lua
index 5f0dedfe1..9c534a020 100644
--- a/lib/tolua++/src/bin/lua/enumerate.lua
+++ b/lib/tolua++/src/bin/lua/enumerate.lua
@@ -52,7 +52,7 @@ _global_output_enums = {}
-- write support code
function classEnumerate:supcode ()
- if _global_output_enums[self.name] ~= nil then
+ if _global_output_enums[self.name] == nil then
_global_output_enums[self.name] = 1
output("int tolua_is" .. self.name .. " (lua_State* L, int lo, int def, tolua_Error* err)")
output("{")