missing cast for coap_encodevar_safe() conversion

This commit is contained in:
Anthony Rabine authored and Olaf Bergmann committed 2018-09-28 18:08:57 +02:00
1 parent 6ea51c8a03
commit d0dfa0b7c0
1 file changed
+1 -1
+1 -1
View File
@@ -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_ */