Skip to content

Instantly share code, notes, and snippets.

@PotcFdk
Created May 22, 2014 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PotcFdk/5580209ae5241bf4f039 to your computer and use it in GitHub Desktop.
Save PotcFdk/5580209ae5241bf4f039 to your computer and use it in GitHub Desktop.
TEST_TABLE = {}
TEST_TABLE.value = 0xB
print (0xA .. " >= " .. TEST_TABLE.value .. ": ", 0xA >= TEST_TABLE.value)
if (0xA >= 0xB) then
print ("0xA >= 0xB") -- If this prints, your computer is insane.
elseif (0xA >= TEST_TABLE.value) then
print ("That is numberwang!") -- You have been wangernumbed.
end
@PotcFdk
Copy link
Author

PotcFdk commented May 22, 2014

$ ./Downloads/LuaJIT-2.0.3/src/luajit.exe hex-bug.lua
10 >= 11: false

$ ./Downloads/LuaJIT-2.0.0/src/luajit.exe hex-bug.lua
10 >= 11: true
That is numberwang!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment