Parcourir la source

[2374] Use correct type for base of strtoul()

Jelte Jansen il y a 12 ans
Parent
commit
9904f524d6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/dns/master_lexer.cc

+ 1 - 1
src/lib/dns/master_lexer.cc

@@ -398,7 +398,7 @@ const State*
 Number::handle(MasterLexer& lexer) const {
     MasterLexer::Token& token = getLexerImpl(lexer)->token_;
     // Do we want to support octal and/or hex here?
-    const unsigned int base = 10;
+    const int base = 10;
 
     // It may yet turn out to be a string, so we first
     // collect all the data