diff --git a/option.h b/option.h index e89e2a6d..60fe225f 100644 --- a/option.h +++ b/option.h @@ -116,7 +116,7 @@ coap_option_filter_clear(coap_opt_filter_t f) { * @return @c 1 if bit was set, @c -1 otherwise. */ inline static int -coap_option_setb(coap_opt_filter_t filter, unsigned char type) { +coap_option_setb(coap_opt_filter_t filter, unsigned short type) { return bits_setb((uint8_t *)filter, sizeof(coap_opt_filter_t), type); } @@ -131,7 +131,7 @@ coap_option_setb(coap_opt_filter_t filter, unsigned char type) { * @return @c 1 if bit was set, @c -1 otherwise. */ inline static int -coap_option_clrb(coap_opt_filter_t filter, unsigned char type) { +coap_option_clrb(coap_opt_filter_t filter, unsigned short type) { return bits_clrb((uint8_t *)filter, sizeof(coap_opt_filter_t), type); } @@ -146,7 +146,7 @@ coap_option_clrb(coap_opt_filter_t filter, unsigned char type) { * @return @c 1 if bit was set, @c 0 if not, @c -1 on error. */ inline static int -coap_option_getb(const coap_opt_filter_t filter, unsigned char type) { +coap_option_getb(const coap_opt_filter_t filter, unsigned short type) { return bits_getb((uint8_t *)filter, sizeof(coap_opt_filter_t), type); }