Use signed in a bunch of places

This commit is contained in:
2025-08-23 20:52:40 -04:00
parent 23b0e7f39a
commit 94f78ebbe7
11 changed files with 41 additions and 37 deletions

View File

@@ -36,7 +36,7 @@ ConnectionRegistry::ConnectionRegistry() : connections_(nullptr), max_fds_(0) {
ConnectionRegistry::~ConnectionRegistry() {
if (connections_ != nullptr) {
for (size_t fd = 0; fd < max_fds_; ++fd) {
for (int fd = 0; fd < static_cast<int>(max_fds_); ++fd) {
delete connections_[fd].load(std::memory_order_relaxed);
}
if (munmap(connections_, aligned_size_) == -1) {