[PPL-devel] [GIT] ppl/ppl(master): Fixed typo.
Abramo Bagnara
abramo.bagnara at gmail.com
Sat Mar 21 12:07:16 CET 2009
Module: ppl/ppl
Branch: master
Commit: 23ddce2126147ad3869c6873685f7c2b3ed249fa
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=23ddce2126147ad3869c6873685f7c2b3ed249fa
Author: Abramo Bagnara <abramo.bagnara at gmail.com>
Date: Sat Mar 21 12:07:27 2009 +0100
Fixed typo.
---
src/stdiobuf.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/stdiobuf.cc b/src/stdiobuf.cc
index 9f21232..a0323e1 100644
--- a/src/stdiobuf.cc
+++ b/src/stdiobuf.cc
@@ -41,7 +41,7 @@ stdiobuf::underflow() {
std::streamsize
stdiobuf::xsgetn(char_type* s, std::streamsize n) {
std::streamsize r = fread(s, 1, n, fp);
- if (s > 0)
+ if (r > 0)
ungetc_buf = traits_type::to_int_type(s[r - 1]);
else
ungetc_buf = traits_type::eof();
More information about the PPL-devel
mailing list