Browse Source

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

Jelte Jansen 12 years ago
parent
commit
9904f524d6
1 changed files with 1 additions and 1 deletions
  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