From 14931b3a869d89660b8e07f533a1be59782b1619 Mon Sep 17 00:00:00 2001 From: Bob Perper Date: Fri, 30 Mar 2018 14:53:05 -0400 Subject: [PATCH] More Windows updates --- CMakeLists.txt | 4 ++-- src/liblsquic/lsquic_rechist.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; } }