mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
Merge pull request #444 from mrdeep1/sign-conversion
Windows C4267 errors: Fix size_t conversion warnings in windows builds
This commit is contained in:
11 files changed
+34
-32
No files matched your search
+2
-2
@@ -474,7 +474,7 @@ coap_show_pdu(coap_log_t level, const coap_pdu_t *pdu) {
|
||||
int content_format = -1;
|
||||
size_t data_len;
|
||||
unsigned char *data;
|
||||
int outbuflen = 0;
|
||||
size_t outbuflen = 0;
|
||||
|
||||
/* Save time if not needed */
|
||||
if (level > coap_get_log_level())
|
||||
@@ -607,7 +607,7 @@ coap_show_pdu(coap_log_t level, const coap_pdu_t *pdu) {
|
||||
snprintf(&outbuf[outbuflen], sizeof(outbuf)-outbuflen, " :: ");
|
||||
|
||||
if (is_binary(content_format)) {
|
||||
int keep_data_len = data_len;
|
||||
size_t keep_data_len = data_len;
|
||||
uint8_t *keep_data = data;
|
||||
|
||||
outbuflen = strlen(outbuf);
|
||||
|
||||
Reference in new issue
Block a user