From e29810f9083d5116fe03fcebe95882b02438a532 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Wed, 27 Sep 2017 09:28:08 +0000 Subject: [PATCH] Fix yet another sparse cltable serialization problem (!) --- src/lib/yang/binary.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/yang/binary.lua b/src/lib/yang/binary.lua index b202bd626f..8434e46dcd 100644 --- a/src/lib/yang/binary.lua +++ b/src/lib/yang/binary.lua @@ -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