From e3f648c0d023fb4b2dc9dd039d4191ccf1c4f435 Mon Sep 17 00:00:00 2001 From: Seongeun Choi Date: Fri, 23 Jun 2017 21:06:54 +0900 Subject: [PATCH] external/wakaama : change type to fix a error. This commit is to fix a logical error. Expression 'len < ((1 << 16) + 269)' is always true, which may be caused by a logical error. Change-Id: I07408010f17ff85458fd666baaedce7f8571f343 Signed-off-by: Seongeun Choi --- external/wakaama/core/er-coap-13/er-coap-13.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/wakaama/core/er-coap-13/er-coap-13.c b/external/wakaama/core/er-coap-13/er-coap-13.c index f416909..3cca884 100644 --- a/external/wakaama/core/er-coap-13/er-coap-13.c +++ b/external/wakaama/core/er-coap-13/er-coap-13.c @@ -388,7 +388,7 @@ size_t coap_serialize_get_size_tcp(void *packet) { coap_packet_t *coap_pkt = (coap_packet_t *) packet; - uint16_t len = 0; + uint32_t len = 0; uint16_t options_len = 0; size_t length = 0; -- 2.7.4