intel / dps-for-iot

Other
61 stars 23 forks source link

CBOR_Peek size argument inconsistent with other CBOR functions #96

Open malsbat opened 5 years ago

malsbat commented 5 years ago

CBOR_Peek takes a uint64_t as the size argument, but CBOR_DecodeArray (and others) take a size_t.

This is an issue on 32-bit platforms (such as RaspberryPi) where size_t and uint64_t are different sizes.