From 7f498f68d46c546b0a898aabaf41b1b35968d24c Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 6 Jul 2009 07:06:11 +0000 Subject: [PATCH] Fix compile warnings on windows --- panda/src/downloader/bioStreamBuf.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/downloader/bioStreamBuf.cxx b/panda/src/downloader/bioStreamBuf.cxx index 6a130226fd..51e1725796 100644 --- a/panda/src/downloader/bioStreamBuf.cxx +++ b/panda/src/downloader/bioStreamBuf.cxx @@ -193,7 +193,7 @@ underflow() { // which that never returns true, if the socket is closed by // the server. But BIO_should_retry() *appears* to be // reliable. - _read_open = BIO_should_retry(*_source); + _read_open = (bool)BIO_should_retry(*_source); if (!_read_open) { downloader_cat.info() << "Lost connection to " @@ -262,7 +262,7 @@ write_chars(const char *start, size_t length) { // without a retry request //_write_open = BIO_should_retry(*_source); //_write_open = !BIO_eof(*_source); - _write_open = BIO_should_write(*_source); + _write_open = (bool)BIO_should_write(*_source); if (!_write_open) { return wrote_so_far; }