mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
Fix compile warnings on windows
This commit is contained in:
parent
8a56d5612f
commit
7f498f68d4
@ -193,7 +193,7 @@ underflow() {
|
|||||||
// which that never returns true, if the socket is closed by
|
// which that never returns true, if the socket is closed by
|
||||||
// the server. But BIO_should_retry() *appears* to be
|
// the server. But BIO_should_retry() *appears* to be
|
||||||
// reliable.
|
// reliable.
|
||||||
_read_open = BIO_should_retry(*_source);
|
_read_open = (bool)BIO_should_retry(*_source);
|
||||||
if (!_read_open) {
|
if (!_read_open) {
|
||||||
downloader_cat.info()
|
downloader_cat.info()
|
||||||
<< "Lost connection to "
|
<< "Lost connection to "
|
||||||
@ -262,7 +262,7 @@ write_chars(const char *start, size_t length) {
|
|||||||
// without a retry request
|
// without a retry request
|
||||||
//_write_open = BIO_should_retry(*_source);
|
//_write_open = BIO_should_retry(*_source);
|
||||||
//_write_open = !BIO_eof(*_source);
|
//_write_open = !BIO_eof(*_source);
|
||||||
_write_open = BIO_should_write(*_source);
|
_write_open = (bool)BIO_should_write(*_source);
|
||||||
if (!_write_open) {
|
if (!_write_open) {
|
||||||
return wrote_so_far;
|
return wrote_so_far;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user