DO NOT MERGE - Merge qt-dev-plus-aosp-without-vendor (5699924) into stage-aosp-master
Bug: 134405016
Change-Id: I165847a78267e11e2a72f68a64750a9999af10ae
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 @@
#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;