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