minor typo in cbor_ntohs macro
phirsov opened this issue · 2 comments
phirsov commented
tinycbor/src/compilersupport_p.h
Line 109 in d072f46
"x" macro parameter should been enclosed in braces for safety:
# define cbor_ntohs(x) (((uint16_t)(x) >> 8) | ((uint16_t)(x) << 8))
rzr commented
Thxx, Just open a pull request , I think you can edit file in place on github
thiagomacieira commented
Please remember to add a Signed-off-By line to your commit when writing the message. But I can fix this quickly if you want me to.