Use signed in a bunch of places
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user