OSDN Git Service

Compatibility with LuaTeX 0.76.0
[luatex-ja/luatexja.git] / src / ltj-otf.lua
index 0904854..f84faa4 100644 (file)
@@ -29,7 +29,7 @@ local to_direct = (Dnode ~= node) and Dnode.todirect or nullfunc
 
 local node_new = Dnode.new
 local node_remove = luatexja.Dnode_remove -- Dnode.remove
-local node_next = Dnode.getnext
+local node_next = (Dnode ~= node) and Dnode.getnext or node.next
 local node_free = Dnode.free
 local has_attr = Dnode.has_attribute
 local set_attr = Dnode.set_attribute