summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-09 21:52:47 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-09 21:52:47 -0400
commit8697120795066e86da89eee8f50812f196da7acc (patch)
tree15b01511e60a24e8d2f9f644fcd632e8ef28cfcf /lib
parente0473e207b299858ef9550ed71be125a9db994ac (diff)
downloadfork-ledger-8697120795066e86da89eee8f50812f196da7acc.tar.gz
fork-ledger-8697120795066e86da89eee8f50812f196da7acc.tar.bz2
fork-ledger-8697120795066e86da89eee8f50812f196da7acc.zip
Fixed more trivial warnings found by g++ 4.3
Diffstat (limited to 'lib')
-rw-r--r--lib/fdstream.h4
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