diff --git a/emper/io/IoContext.cpp b/emper/io/IoContext.cpp
index 850a00bda014f0629cad2c5125c5faf18a6a2d12..4f6d74649ba5e12f02744ceb2af9ccec45ec191f 100644
--- a/emper/io/IoContext.cpp
+++ b/emper/io/IoContext.cpp
@@ -334,7 +334,7 @@ auto IoContext::reapCompletionsLockless(Fiber **continuations) -> unsigned {
 
 	LOGD("got " << count << " cqes from worker " << worker->getWorkerId() << "'s io_uring");
 
-	trackReqsInUring(-count);
+	trackReqsInUring(-static_cast<long>(count));
 
 	// Reaps done by other worker threads are counted in the AbstractWorkStealingStats
 	// as stolenIoFibers.
@@ -469,7 +469,7 @@ reap_cqes:
 
 	LOGD("got " << count << " cqes from worker " << worker->getWorkerId() << "'s io_uring");
 
-	trackReqsInUring(-count);
+	trackReqsInUring(-static_cast<long>(count));
 
 	// Reaps done by other worker threads are counted in the AbstractWorkStealingStats
 	// as stolenIoFibers.