Skip to content

Commit

Permalink
Fix small issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zauguin authored and josephwright committed Feb 15, 2023
1 parent 757e65c commit bc2fd4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions l3backend/l3backend-color.dtx
Expand Up @@ -1386,7 +1386,7 @@ local color_attr = luatexbase.new_attribute("color")
% \begin{macro}{map}
% A map between color strings and their color_index, plus the tracking number.
% \begin{macrocode}
local map = {n = 0}
local map = {}
% \end{macrocode}
% \end{macro}
%
Expand All @@ -1396,7 +1396,7 @@ local map = {n = 0}
local function color_index(color)
local n = map[color]
if not n then
n = map.n + 1
n = #map + 1
map[n] = color
map[color] = n
end
Expand All @@ -1423,7 +1423,7 @@ local node_new = node.new
local node_traverse = node.traverse
local saveboxresources = tex.saveboxresources
local set_attribute = tex.setattribute
local type = node.type
local node_type = node.type
local subtype = node.subtype
% \end{macrocode}
%
Expand Down Expand Up @@ -1532,7 +1532,7 @@ local function traverse(list,color,dry_run)
elseif get_type(list) == id_list_disc then
head = list.replace
else
module_error("l3color","Wrong list type: " .. type(list.id))
module_error("l3color","Wrong list type: " .. node_type(list.id))
return color
end
% \end{macrocode}
Expand Down

0 comments on commit bc2fd4f

Please sign in to comment.