From 2a6dca69c79b95cd2593374bbdc1eccbeec24faa Mon Sep 17 00:00:00 2001 From: Green Sky Date: Fri, 16 Jun 2023 17:08:36 +0200 Subject: [PATCH] fix msvc conversion error --- ngc_ft1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ngc_ft1.cpp b/ngc_ft1.cpp index 21959bd..babe0b9 100644 --- a/ngc_ft1.cpp +++ b/ngc_ft1.cpp @@ -277,7 +277,7 @@ void NGC_FT1_iterate(Tox *tox, NGC_FT1* ngc_ft1_ctx, float time_delta) { // if chunks in flight < window size (2) //while (tf.ssb.size() < ngc_ft1_ctx->options.packet_window_size) { - int64_t can_packet_size {peer.cca.canSend()}; + int64_t can_packet_size {static_cast(peer.cca.canSend())}; //if (can_packet_size) { //std::cerr << "FT: can_packet_size: " << can_packet_size; //} @@ -292,7 +292,7 @@ void NGC_FT1_iterate(Tox *tox, NGC_FT1* ngc_ft1_ctx, float time_delta) { //496u, //996u, peer.cca.MAXIMUM_SEGMENT_DATA_SIZE, - can_packet_size, + static_cast(can_packet_size), tf.file_size - tf.file_size_current }); if (chunk_size == 0) {