diff options
Diffstat (limited to 'tex/context/base/mkiv/util-tab.lua')
-rw-r--r-- | tex/context/base/mkiv/util-tab.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/util-tab.lua b/tex/context/base/mkiv/util-tab.lua index 9266598db..0ebe1b5b1 100644 --- a/tex/context/base/mkiv/util-tab.lua +++ b/tex/context/base/mkiv/util-tab.lua @@ -491,7 +491,7 @@ function table.twowaymapper(t) t = { } else local zero = rawget(t,0) - for i=zero or 1,#t do + for i=zero and 0 or 1,#t do local ti = t[i] -- t[1] = "one" if ti then local i = tostring(i) @@ -499,7 +499,6 @@ function table.twowaymapper(t) t[ti] = i -- t["one"] = "1" end end - t[""] = zero or "" end -- setmetatableindex(t,"key") setmetatable(t,selfmapper) |