NordicSemiconductor / zcbor

Low footprint C/C++ CBOR library and Python tool providing code generation from CDDL descriptions.
Apache License 2.0
105 stars 34 forks source link

zcbor.py: Fix range_checks for 'OTHER' type #375

Closed oyvindronningstad closed 6 months ago

oyvindronningstad commented 6 months ago

range checks were always added for 'OTHER' types, but this is not necessary if the referenced type creates its own function, since the checks are added there.

This was causing a bug because the 'OTHER' type was unable to resolve the access path correctly.

Fixes #349