Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/sundown-ffi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Collobert <locronan@fb.com>2016-08-29 20:20:22 +0300
committerRonan Collobert <locronan@fb.com>2016-08-29 20:20:22 +0300
commit17ea705429f818cd9b290c0879b577607bc6e871 (patch)
treef541d165a36cb615fb843ec236e2b95e14164aca
parent8353f5a53c94f15b88d89770512247e915534517 (diff)
support bit32 (lua 5.2)
-rw-r--r--ascii.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/ascii.lua b/ascii.lua
index 2375f67..f14aed7 100644
--- a/ascii.lua
+++ b/ascii.lua
@@ -1,7 +1,13 @@
local sundown = require 'sundown.env'
local C = sundown.C
local ffi = require 'ffi'
-local bit = require 'bit'
+local bit
+
+if _VERSION == 'Lua 5.2' or _VERSION == 'Lua 5.3' then
+ bit = require 'bit32'
+else
+ bit = require 'bit'
+end
require 'sundown.sdcdefs'