]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add a few comments. 15727/head
authorMiod Vallat <miod.vallat@powerdns.com>
Fri, 27 Jun 2025 12:59:41 +0000 (14:59 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 27 Jun 2025 12:59:41 +0000 (14:59 +0200)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/misc.hh

index b6c3f44e4e96a46c8f2381c3f46b9a75452eafcb..f70ba81c460290f18579b8ec543a5683c72a0c53 100644 (file)
@@ -386,6 +386,9 @@ inline int pdns_ilexicographical_compare_three_way(std::string_view a, std::stri
     aPtr++;
     bPtr++;
   }
+  // At this point, one of the strings has been completely processed.
+  // Either both have the same length, and they are equal, or one of them
+  // is larger, and compares as higher.
   if (aPtr == aEptr) {
     if (bPtr != bEptr) {
       return -1; // a < b