diff options
-rw-r--r-- | lib/fdstream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fdstream.h b/lib/fdstream.h index af352c2c..526c9f53 100644 --- a/lib/fdstream.h +++ b/lib/fdstream.h @@ -139,7 +139,7 @@ class fdinbuf : public std::streambuf { * - use number of characters read * - but at most size of putback area */ - int numPutback; + std::streamsize numPutback; numPutback = gptr() - eback(); if (numPutback > pbSize) { numPutback = pbSize; @@ -152,7 +152,7 @@ class fdinbuf : public std::streambuf { numPutback); // read at most bufSize new characters - int num; + ssize_t num; num = read (fd, buffer+pbSize, bufSize); if (num <= 0) { // ERROR or EOF |