Skip to content

Commit

Permalink
Merge pull request arduino#2057 from zfields/patch-1
Browse files Browse the repository at this point in the history
Match return value to type in available()
  • Loading branch information
cmaglie committed May 23, 2014
2 parents b999ed2 + f40e471 commit fb8e439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware/arduino/cores/arduino/HardwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ void HardwareSerial::end()

int HardwareSerial::available(void)
{
return (unsigned int)(SERIAL_BUFFER_SIZE + _rx_buffer->head - _rx_buffer->tail) % SERIAL_BUFFER_SIZE;
return (int)(SERIAL_BUFFER_SIZE + _rx_buffer->head - _rx_buffer->tail) % SERIAL_BUFFER_SIZE;
}

int HardwareSerial::peek(void)
Expand Down

0 comments on commit fb8e439

Please sign in to comment.