diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ba6237..acc5260 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,7 +121,7 @@ add_executable(http_client test/prog.c test/test_common.c ) -#target_link_libraries(http_client lsquic event pthread libssl.a libcrypto.a ${FIULIB} z m) +target_link_libraries(http_client lsquic event pthread libssl.a libcrypto.a ${FIULIB} z m) #MSVC ELSE() @@ -149,7 +149,7 @@ target_link_libraries(http_client ENDIF() -target_link_libraries(http_client lsquic event pthread libssl.a libcrypto.a ${FIULIB} z m) +#target_link_libraries(http_client lsquic event pthread libssl.a libcrypto.a ${FIULIB} z m) add_subdirectory(src) diff --git a/src/liblsquic/lsquic_rechist.c b/src/liblsquic/lsquic_rechist.c index 79f2e5f..3e6a5a8 100644 --- a/src/liblsquic/lsquic_rechist.c +++ b/src/liblsquic/lsquic_rechist.c @@ -102,7 +102,7 @@ lsquic_rechist_stop_wait (lsquic_rechist_t *rechist, lsquic_packno_t cutoff) } else { - rechist->rh_n_packets -= cutoff - pi->range.low; + rechist->rh_n_packets -= (unsigned)(cutoff - pi->range.low); pi->range.low = cutoff; } }