Parcourir la source

[master] Compilation fix for comparison of std::stream pos value.

This is trivial fix so as I am committing it on my own discretion. Also,
this fix had already been reviewed and applied on master branch but
apparently disappeared after the recent git migration.
Marcin Siodelski il y a 10 ans
Parent
commit
539826f03a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/dhcpsrv/configuration.cc

+ 1 - 1
src/lib/dhcpsrv/configuration.cc

@@ -48,7 +48,7 @@ Configuration::getConfigSummary(const uint32_t selection) const {
         s << "DDNS: " << (ddns_enabled ? "enabled" : "disabled") << "; ";
     }
 
-    if (s.tellp() == 0) {
+    if (s.tellp() == static_cast<std::streampos>(0)) {
         s << "no config details available";
     }