Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect serialization of multi-dimensional tables if {y,z}size <= 1 #232

Open
cremno opened this issue Sep 9, 2020 · 0 comments
Open

Comments

@cremno
Copy link
Contributor

cremno commented Sep 9, 2020

Table.new(1, 1, 1)._dump(-1).unpack(?V)[0]  # => 1
Table.new(1, 0, 1)._dump(-1).unpack(?V)[0]  # => 1
Table.new(0, 1)._dump(-1).unpack(?V)[0]  # => 1
Table.new(0, 0)._dump(-1).unpack(?V)[0]  # => 1

Should be 3, 3, 2, 2.

@cremno cremno changed the title incorrect serialization of multi-dimensionional tables when {y,z}size <= 1 incorrect serialization of multi-dimensional tables if {y,z}size <= 1 Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants