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

github.com/torch/graph.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMTSranger <jsonchiu@gmail.com>2016-04-05 13:43:58 +0300
committerMTSranger <jsonchiu@gmail.com>2016-04-05 13:43:58 +0300
commitfd44eeee5d2c7d187106ed0b01848cc193af67bc (patch)
treee032d0dee5f12fc35d1dfdf142e5fb6d8f56c08b
parent6ab76730aecc6fcaa4c2abf4b4b921c5bf0c902a (diff)
Removed hard FFI dependency
Hard FFI dependency was re-introduced by commit:0d85da7a95fcc9385e30e989d89b996f4416137a
-rw-r--r--graphviz.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphviz.lua b/graphviz.lua
index dc4dd42..8588f75 100644
--- a/graphviz.lua
+++ b/graphviz.lua
@@ -51,7 +51,7 @@ else
end
local unpack = unpack or table.unpack -- Lua52 compatibility
-local NULL = (not jit) and ffi.C.NULL or nil -- LuaJIT compatibility
+local NULL = (ffiOk and (not jit)) and ffi.C.NULL or nil -- LuaJIT compatibility
-- Retrieve attribute data from a graphviz object.
local function getAttribute(obj, name)