Fix json renderer always rendering arrays empty

This commit is contained in:
Kal Conley 2015-10-18 09:31:08 +02:00
parent 29c75337f2
commit b404c79ca4

View File

@ -76,7 +76,7 @@ struct Renderer : mapbox::util::static_visitor<>
void operator()(const Array &array) const
{
out << "[";
for (auto it = array.values.cend(), end = array.values.cend(); it != end;)
for (auto it = array.values.cbegin(), end = array.values.cend(); it != end;)
{
mapbox::util::apply_visitor(Renderer(out), *it);
if (++it != end)