Fix #68 Encoder/decoder mismatch with EIP

This merge request is to fix the encoder/decoder mismatch reported in #68 (closed) (The encoder will skip the dimd directions in rare cases).

Merge request reports

Loading