Merge pull request #444 from mrdeep1/sign-conversion

Windows C4267 errors: Fix size_t conversion warnings in windows builds
This commit is contained in:
obgm authored and GitHub committed 2020-05-04 17:49:45 +02:00
commit 4c299ddc95
11 files changed
+34 -32

No files matched your search

+1 -1
View File
@@ -133,7 +133,7 @@ int coap_write_block_opt(coap_block_t *block,
* @return @c 1 on success, @c 0 otherwise.
*/
int coap_add_block(coap_pdu_t *pdu,
unsigned int len,
size_t len,
const uint8_t *data,
unsigned int block_num,
unsigned char block_szx);
+1 -1
View File
@@ -31,7 +31,7 @@ typedef unsigned char coap_key_t[4];
* @param len The length of @p s.
* @param h The result buffer to store the calculated hash key.
*/
void coap_hash_impl(const unsigned char *s, unsigned int len, coap_key_t h);
void coap_hash_impl(const unsigned char *s, size_t len, coap_key_t h);
#define coap_hash(String,Length,Result) \
coap_hash_impl((String),(Length),(Result))