Skip to content

Commit

Permalink
Merge pull request #2 from david-novak-legrand/compat-explicit-casts
Browse files Browse the repository at this point in the history
Use explicit cast so that iOS will build
  • Loading branch information
lganzzzo committed Jun 11, 2019
2 parents 9153dc7 + 585664b commit 9d80fff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/oatpp-mbedtls/Connection.cpp
Expand Up @@ -71,7 +71,7 @@ Connection::~Connection(){

data::v_io_size Connection::write(const void *buff, data::v_io_size count){

auto result = mbedtls_ssl_write(m_tlsHandle, (const unsigned char *) buff, count);
auto result = mbedtls_ssl_write(m_tlsHandle, (const unsigned char *) buff, (size_t)count);

if(result >= 0) {
return result;
Expand All @@ -89,7 +89,7 @@ data::v_io_size Connection::write(const void *buff, data::v_io_size count){

data::v_io_size Connection::read(void *buff, data::v_io_size count){

auto result = mbedtls_ssl_read(m_tlsHandle, (unsigned char *) buff, count);
auto result = mbedtls_ssl_read(m_tlsHandle, (unsigned char *) buff, (size_t)count);

if(result >= 0) {
return result;
Expand Down

0 comments on commit 9d80fff

Please sign in to comment.