commit | 29497c0e6f4a58e15898d055610edb6b1d35e1a4 | [log] [tgz] |
---|---|---|
author | Laurence Lundblade <lgl@securitytheory.com> | Sat Jul 11 15:44:03 2020 -0700 |
committer | Laurence Lundblade <lgl@securitytheory.com> | Sat Jul 11 15:44:03 2020 -0700 |
tree | daa78af6889281dc30e254157800f80592345cb4 | |
parent | 9682a53836e12960bfc7da193e7c6415370e56fe [diff] [blame] |
fix for stricter compilers; latest XCode/LLVM
diff --git a/src/qcbor_decode.c b/src/qcbor_decode.c index 532da1e..ab37435 100644 --- a/src/qcbor_decode.c +++ b/src/qcbor_decode.c
@@ -403,7 +403,7 @@ UsefulInputBuf_Init(&(me->InBuf), EncodedCBOR); // Don't bother with error check on decode mode. If a bad value is // passed it will just act as if the default normal mode of 0 was set. - me->uDecodeMode = nDecodeMode; + me->uDecodeMode = (uint8_t)nDecodeMode; DecodeNesting_Init(&(me->nesting)); }