Skip to content

Commit

Permalink
Fix unsigned/signed comparison warning
Browse files Browse the repository at this point in the history
warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  • Loading branch information
zfields authored and sandeepmistry committed Jan 29, 2018
1 parent 1cea5d2 commit 161a416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/serial/BLESerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ BLESerial::operator bool() {
}

void BLESerial::_received(const uint8_t* data, size_t size) {
for (int i = 0; i < size; i++) {
for (size_t i = 0; i < size; i++) {
this->_rxHead = (this->_rxHead + 1) % sizeof(this->_rxBuffer);
this->_rxBuffer[this->_rxHead] = data[i];
}
Expand Down

0 comments on commit 161a416

Please sign in to comment.