13
0

fix thinko when testing for internal seek with negative distance

This commit is contained in:
Paul Davis 2019-09-05 14:04:20 -06:00
parent cbb7f6d863
commit f52781b46b

View File

@ -164,7 +164,7 @@ public:
return read_space() >= cnt;
}
else if (cnt < 0) {
return g_atomic_int_get (&reserved) >= cnt;
return g_atomic_int_get (&reserved) >= -cnt;
}
else {
return true;