From 926ccaca3cce5be9040332baf056020d3387ec02 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 22 Dec 2015 18:13:05 +0200 Subject: [PATCH] Use C++11 conversion --- pdns/lua-recursor4.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."; -- 2.40.0