From 2ad78ecfcb4f09c387ae649a8d86a380cc88c270 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Wed, 8 Jan 2020 06:46:09 -0700 Subject: [PATCH] type conversion histronics --- QnetITAP.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/QnetITAP.cpp b/QnetITAP.cpp index 64daef4..d41494a 100644 --- a/QnetITAP.cpp +++ b/QnetITAP.cpp @@ -367,11 +367,11 @@ void CQnetITAP::Run(const char *cfgfile) acknowledged = false; } }else { - static std::size_t last_count = 0; - std::size_t count = queue.size(); + static unsigned int last_count = 0; + auto count = queue.size(); if (last_count != count) { - printf("queue contains %lu packets\n", count); last_count = count; + printf("queue contains %u packets\n", last_count); } } } else { // we are waiting on an acknowledgement