Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35586 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
682c3066c7
commit
28eaa574fd
@ -1851,7 +1851,8 @@ tty_input_read(tty_cookie* cookie, void* _buffer, size_t* _length)
|
||||
buffer += bytesRead;
|
||||
length -= bytesRead;
|
||||
*_length += bytesRead;
|
||||
bytesNeeded = bytesRead > bytesNeeded ? 0 : bytesNeeded - bytesRead;
|
||||
bytesNeeded = (size_t)bytesRead > bytesNeeded
|
||||
? 0 : bytesNeeded - bytesRead;
|
||||
|
||||
// we hit an EOF char -- bail out, whatever amount of data we have
|
||||
if (hitEOF && *hitEOF) {
|
||||
|
Loading…
Reference in New Issue
Block a user