Skip to content

Commit 07bfbe8

Browse files
committed
Fix compiler warning (unsigned mismatch)
1 parent d5f0386 commit 07bfbe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resolver_impl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ void resolver_impl::next_resolve_wave() {
203203

204204
void resolver_impl::udp_multicast_burst() {
205205
// start one per IP stack under consideration
206-
int failures = 0;
206+
unsigned int failures = 0;
207207
for (auto protocol: udp_protocols_) {
208208
try {
209209
std::make_shared<resolve_attempt_udp>(
@@ -222,7 +222,7 @@ void resolver_impl::udp_multicast_burst() {
222222
void resolver_impl::udp_unicast_burst(err_t err) {
223223
if (err == asio::error::operation_aborted) return;
224224

225-
int failures = 0;
225+
unsigned int failures = 0;
226226
// start one per IP stack under consideration
227227
for (auto protocol: udp_protocols_) {
228228
try {

0 commit comments

Comments
 (0)