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:
authorSoumith Chintala <soumith@gmail.com>2016-04-15 23:46:36 +0300
committerSoumith Chintala <soumith@gmail.com>2016-04-15 23:46:36 +0300
commit34d712890badbb9f9d05a46d073ff1d91af0f6ee (patch)
treee032d0dee5f12fc35d1dfdf142e5fb6d8f56c08b
parent6ab76730aecc6fcaa4c2abf4b4b921c5bf0c902a (diff)
parentfd44eeee5d2c7d187106ed0b01848cc193af67bc (diff)
Merge pull request #25 from MTSranger/graphvizfix2
Removed hard FFI dependency
-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)