mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
gbump on EOF
This commit is contained in:
parent
8fc1ac9321
commit
a33c3414b9
@ -291,6 +291,7 @@ underflow() {
|
|||||||
if (_end != (streampos)0) {
|
if (_end != (streampos)0) {
|
||||||
_end = _cur;
|
_end = _cur;
|
||||||
}
|
}
|
||||||
|
gbump(num_bytes);
|
||||||
return EOF;
|
return EOF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,6 +221,7 @@ underflow() {
|
|||||||
if (read_count != num_bytes) {
|
if (read_count != num_bytes) {
|
||||||
// Oops, we didn't read what we thought we would.
|
// Oops, we didn't read what we thought we would.
|
||||||
if (read_count == 0) {
|
if (read_count == 0) {
|
||||||
|
gbump(num_bytes);
|
||||||
return EOF;
|
return EOF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user