BLE: Fix byte_array_t subscript operator

pull/6932/head
Vincent Coubard 2018-04-04 15:22:15 +01:00
parent d8f3d9c5ef
commit 9e1f0b34f8
1 changed files with 2 additions and 2 deletions

View File

@ -311,14 +311,14 @@ struct byte_array_t {
/**
* Subscript operator to access data content
*/
uint8_t& operator[](uint8_t i) {
uint8_t& operator[](size_t i) {
return _value[i];
}
/**
* Subscript operator to access data content
*/
uint8_t operator[](uint8_t i) const {
uint8_t operator[](size_t i) const {
return _value[i];
}