diff --git a/ares/ares_strerror.c b/ares/ares_strerror.c index 7918e660c..5c285eb2c 100644 --- a/ares/ares_strerror.c +++ b/ares/ares_strerror.c @@ -38,6 +38,6 @@ const char *ares_strerror(int code) "Out of memory" }; - assert(code >= 0 && code < (sizeof(errtext) / sizeof(*errtext))); + assert(code >= 0 && code < (int)(sizeof(errtext) / sizeof(*errtext))); return errtext[code]; }