From 8697120795066e86da89eee8f50812f196da7acc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 9 Mar 2009 21:52:47 -0400 Subject: Fixed more trivial warnings found by g++ 4.3 --- lib/fdstream.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3