mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
parent
d2c93540ac
commit
d703131c00
@ -60,15 +60,15 @@ public:
|
||||
return _begin == _end;
|
||||
}
|
||||
|
||||
char peek()
|
||||
int peek()
|
||||
{
|
||||
if (_end == _begin)
|
||||
return -1;
|
||||
|
||||
return *_begin;
|
||||
return static_cast<int>(*_begin);
|
||||
}
|
||||
|
||||
char read()
|
||||
int read()
|
||||
{
|
||||
if (getSize() == 0)
|
||||
return -1;
|
||||
@ -76,7 +76,7 @@ public:
|
||||
char result = *_begin;
|
||||
if (++_begin == _bufend)
|
||||
_begin = _buf;
|
||||
return result;
|
||||
return static_cast<int>(result);
|
||||
}
|
||||
|
||||
size_t read(char* dst, size_t size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user