Parcourir la source

[master] Add std:: to memcmp

Jelte Jansen il y a 12 ans
Parent
commit
65eb1db454
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/dns/rdata/generic/detail/char_string.cc

+ 1 - 1
src/lib/dns/rdata/generic/detail/char_string.cc

@@ -130,7 +130,7 @@ int compareCharStrings(const detail::CharString& self,
     const size_t self_len = self[0];
     const size_t other_len = other[0];
     const size_t cmp_len = std::min(self_len, other_len);
-    const int cmp = memcmp(&self[1], &other[1], cmp_len);
+    const int cmp = std::memcmp(&self[1], &other[1], cmp_len);
     if (cmp < 0) {
         return (-1);
     } else if (cmp > 0) {