From: Aki Tuomi Date: Tue, 22 Dec 2015 16:13:05 +0000 (+0200) Subject: Use C++11 conversion X-Git-Tag: dnsdist-1.0.0-alpha2~88^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=926ccaca3cce5be9040332baf056020d3387ec02;p=pdns Use C++11 conversion --- diff --git a/pdns/lua-recursor4.cc b/pdns/lua-recursor4.cc index 73b2a06f2..b2208b5dc 100644 --- a/pdns/lua-recursor4.cc +++ b/pdns/lua-recursor4.cc @@ -104,7 +104,7 @@ static int getFakePTRRecords(const DNSName& qname, const std::string& prefix, ve string newquery; for(int n = 0; n < 4; ++n) { newquery += - std::to_string(strtol(parts[n*2].c_str(), 0, 16) + 16*strtol(parts[n*2+1].c_str(), 0, 16)); + std::to_string(stoll(parts[n*2], 0, 16) + 16*stoll(parts[n*2+1], 0, 16)); newquery.append(1,'.'); } newquery += "in-addr.arpa.";