]> granicus.if.org Git - pdns/commitdiff
silence clang warning
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 25 Aug 2014 20:26:22 +0000 (22:26 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Mon, 25 Aug 2014 20:26:22 +0000 (22:26 +0200)
pdns/dnsparser.cc

index b0030fdd413e9697bec2e8a9b36f5766be311e27..a03644e8b04afacfe638f6d709b005ab9b19e043 100644 (file)
@@ -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;