From d249f3ae6c36ec9b06afc2babb921bed88e07c6a Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Mon, 2 Mar 2020 13:45:15 +0100 Subject: [PATCH] fixed bug where read would not be called --- fdistream.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fdistream.cpp b/fdistream.cpp index 32848de..33c85f9 100644 --- a/fdistream.cpp +++ b/fdistream.cpp @@ -9,14 +9,17 @@ #include "libscio.hpp" #ifdef _MSC_VER -#include + #include #else -#include + #include #endif using namespace sc::io; std::streambuf::int_type fdinbuf::uflow() { + if (_ch == EOF) { + return underflow(); + } return _ch; }