OSDN Git Service

Compatibility with LuaTeX 0.76.0
[luatex-ja/luatexja.git] / src / ltj-math.lua
index 6bf7031..04b5b92 100644 (file)
@@ -22,7 +22,7 @@ local to_direct = (Dnode ~= node) and Dnode.todirect or nullfunc
 
 local node_traverse = Dnode.traverse
 local node_new = Dnode.new
-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