SirAnthony/slpp

decode bug : missing last zero in lua array

enjolras1205 opened this issue · 2 comments

from slpp import slpp as lua
print(lua.decode({0,1,0}))
set([0, 1])
should be set([0, 1, 0])

I comment line in slpp.py:154

if k:

the last zero is not missing now.

what's the purpose of this line?

Thanks.

thanks for reply.
: )