X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fmemory.cpp;h=fa8f9053de029e3965f1fd4c261a43e6c4a69c1c;hp=6ccf84654764cbe8086a3ac841330580d302dcd1;hb=82d74297d5b469b0a506d7010a84ab5115cd88ee;hpb=2749f89e25c9b1bfb76803ee01b780790cd3f96a diff --git a/source/io/memory.cpp b/source/io/memory.cpp index 6ccf846..fa8f905 100644 --- a/source/io/memory.cpp +++ b/source/io/memory.cpp @@ -51,7 +51,7 @@ unsigned Memory::do_read(char *buf, unsigned size) { if(pos==end) { - eof_flag = true; + set_eof(); return 0; } @@ -81,7 +81,7 @@ int Memory::get() { if(pos==end) { - eof_flag = true; + set_eof(); return -1; }