]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/slice.cpp
Return -1 from Slice::get at eof
[libs/core.git] / source / io / slice.cpp
index 63df62f29f841d164d5c52e7f80506c16a5a128f..9b7ba5444dbc09451e31b65d3500708820fb4c36 100644 (file)
@@ -88,7 +88,7 @@ int Slice::get()
 {
        Base::Synchronize sync(below);
        if(!prepare_op(1, M_READ))
-               return 0;
+               return -1;
 
        int c = below.get();
        if(c==-1 && below.eof())