From d0dfa0b7c0ad76586316909ba724aae5b708e677 Mon Sep 17 00:00:00 2001 From: Anthony Rabine Date: Tue, 18 Sep 2018 12:23:01 -0400 Subject: [PATCH] missing cast for coap_encodevar_safe() conversion --- include/coap/encode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/coap/encode.h b/include/coap/encode.h index 2697357b..b962941b 100644 --- a/include/coap/encode.h +++ b/include/coap/encode.h @@ -90,7 +90,7 @@ unsigned int coap_encode_var_safe(uint8_t *buf, COAP_STATIC_INLINE COAP_DEPRECATED int coap_encode_var_bytes(uint8_t *buf, unsigned int value ) { - return coap_encode_var_safe(buf, sizeof(value), value); + return (int)coap_encode_var_safe(buf, sizeof(value), value); } #endif /* _COAP_ENCODE_H_ */