From: bert hubert Date: Mon, 25 Aug 2014 20:26:22 +0000 (+0200) Subject: silence clang warning X-Git-Tag: auth-3.4.0-rc2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53edfc45e0dd7e491a4148f5bcf326e6388bac45;p=thirdparty%2Fpdns.git silence clang warning --- diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index b0030fdd41..a03644e8b0 100644 --- a/pdns/dnsparser.cc +++ b/pdns/dnsparser.cc @@ -554,7 +554,7 @@ string simpleCompress(const string& elabel, const string& root) void simpleExpandTo(const string& label, unsigned int frompos, string& ret) { unsigned int labellen=0; - while((labellen=label.at(frompos++))) { + while((labellen=(unsigned char)label.at(frompos++))) { ret.append(label.c_str()+frompos, labellen); ret.append(1,'.'); frompos+=labellen;