mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-10 02:40:40 +03:00
pdu.c: Remove downcast warning.
This commit is contained in:
1 parent
01b2ec78fd
commit
8701fb33c7
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user