pdu.c: Remove downcast warning.

This commit is contained in:
Jean-Claude Michelou authored and Olaf Bergmann committed 2018-09-24 15:55:54 +02:00
1 parent 01b2ec78fd
commit 8701fb33c7
1 file changed
+1 -1
+1 -1
View File
@@ -492,7 +492,7 @@ coap_pdu_parse_header(coap_pdu_t *pdu, coap_proto_t proto) {
if (pdu->token_length > pdu->alloc_size) {
/* Invalid PDU provided - not wise to assert here though */
coap_log(LOG_DEBUG, "coap_pdu_parse: PDU header token size broken\n");
pdu->token_length = pdu->alloc_size;
pdu->token_length = (uint8_t)pdu->alloc_size;
return 0;
}
return 1;