Fixed warning.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35586 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-02-23 14:19:19 +00:00
parent 682c3066c7
commit 28eaa574fd

View File

@ -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) {