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

Fix conversion of UINT8_MAX etc. #388

Closed oyvindronningstad closed 5 months ago

oyvindronningstad commented 5 months ago

The conversion happened prematurely, and caused errors when the value was compared to ints. Refactor so the conversion happens at the latest possible point. Add test.

Fixes #387