Skip to content

Commit

Permalink
Fix yet another sparse cltable serialization problem (!)
Browse files Browse the repository at this point in the history
  • Loading branch information
wingo committed Sep 27, 2017
1 parent 293838e commit e29810f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/yang/binary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ local function data_emitter(production)
return function(data, stream)
stream:write_stringref('cltable')
emit_keys(data.keys, stream)
for i, value in ipairs(data.values) do
for i, value in pairs(data.values) do
stream:write_uint32(i)
emit_value(value, stream)
end
Expand Down

0 comments on commit e29810f

Please sign in to comment.