summaryrefslogtreecommitdiff
path: root/tex/context/base/l-table.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2010-09-22 11:03:47 +0300
committerMarius <mariausol@gmail.com>2010-09-22 11:03:47 +0300
commit9d17a4bc572f48289b6d188684a7bbf8c46839fe (patch)
treeb80a082a5d00cd7ee84a8c51c6a5b13d574f2447 /tex/context/base/l-table.lua
parentf986a332f76934300807a66702e402cc57c4b776 (diff)
downloadcontext-9d17a4bc572f48289b6d188684a7bbf8c46839fe.tar.gz
beta 2010.09.22 09:35
Diffstat (limited to 'tex/context/base/l-table.lua')
-rw-r--r--tex/context/base/l-table.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/tex/context/base/l-table.lua b/tex/context/base/l-table.lua
index 996e36a83..1bd9921cb 100644
--- a/tex/context/base/l-table.lua
+++ b/tex/context/base/l-table.lua
@@ -99,7 +99,7 @@ local function sortedkeys(tab)
elseif tkey == "number" then
-- if kind == 1 then kind = 3 else kind = 2 end
kind = (kind == 1 and 3) or 2
- else
+ else -- if tkey then
kind = 3
end
end
@@ -115,7 +115,9 @@ end
local function sortedhashkeys(tab) -- fast one
local srt = { }
for key,_ in next, tab do
- srt[#srt+1] = key
+ if key then
+ srt[#srt+1] = key
+ end
end
sort(srt)
return srt