fixed bug where read would not be called

This commit is contained in:
Bob Polis 2020-03-02 13:45:15 +01:00
parent 2165710720
commit d249f3ae6c

View File

@ -9,14 +9,17 @@
#include "libscio.hpp" #include "libscio.hpp"
#ifdef _MSC_VER #ifdef _MSC_VER
#include <io.h> #include <io.h>
#else #else
#include <unistd.h> #include <unistd.h>
#endif #endif
using namespace sc::io; using namespace sc::io;
std::streambuf::int_type fdinbuf::uflow() { std::streambuf::int_type fdinbuf::uflow() {
if (_ch == EOF) {
return underflow();
}
return _ch; return _ch;
} }