Skip to content

[BUG] - Cip Array Type decode method fails #336

Description

@MaxjATL

Description
Hi I know this repo is no longer active development. However I am unclear whether that means others can not open pull requests an have them merged? Or just that the main developers are no longer actively contributing code. If desired I can happily open a pull request to fix this issue.

In any case I have found a bug with the decode method for the CIP array type in the current version

Specifically this line:

_val = [cls.element_type.decode(stream) for _ in range(_length)]

references _length when it should be using _len which results in the error

"TypeError: '_DataTypeMeta' object cannot be interpreted as an integer" when trying to decode an array specified in a manner such as

Array(UINT, ActiveLanguage)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions