diff options
author | Xin Li <delphij@google.com> | 2019-09-04 13:33:35 -0700 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2019-09-04 13:33:35 -0700 |
commit | 96f07d819b8b62d7cf5779e9717d16cd4160c61d (patch) | |
tree | 32004465065b431a8ed1c140d25898dee2cee756 | |
parent | 47983a039473f3848647c93278e2d4ae9a5eff51 (diff) | |
parent | 22949537426caf80b6b38b8316e02581012f5f55 (diff) | |
download | cn-cbor-96f07d819b8b62d7cf5779e9717d16cd4160c61d.tar.gz |
DO NOT MERGE - Merge Android 10 into masterndk-sysroot-r21
Bug: 139893257
Change-Id: Ic655324c52447411209c7ab8c225af31e3f92241
-rw-r--r-- | src/cn-cbor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cn-cbor.c b/src/cn-cbor.c index 9093537..2526b92 100644 --- a/src/cn-cbor.c +++ b/src/cn-cbor.c @@ -53,7 +53,7 @@ static double decode_half(int half) { #ifndef CBOR_ALIGN_READS #define ntoh16p(p) (ntohs(*(unsigned short*)(p))) -#define ntoh32p(p) (ntohl(*(unsigned long*)(p))) +#define ntoh32p(p) (ntohl(*(uint32_t*)(p))) #else static uint16_t ntoh16p(unsigned char *p) { uint16_t tmp; |