]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix compiler warning in dnsreplay.cc 1347/head
authorKees Monshouwer <mind04@monshouwer.org>
Mon, 24 Mar 2014 20:20:09 +0000 (21:20 +0100)
committermind04 <mind04@monshouwer.org>
Wed, 26 Mar 2014 19:22:44 +0000 (20:22 +0100)
pdns/dnsreplay.cc

index 04cbfe3ab2901b55fa9f3d6aab516c444d2015b8..551ded3eabd3999c8badfd65cc50d9dcb67f216d 100644 (file)
@@ -310,7 +310,7 @@ uint64_t countLessThan(unsigned int msec)
 void emitFlightTimes()
 {
   uint64_t totals = countLessThan(flightTimes.size());
-  unsigned int limits[]={1, 2, 3, 4, 5, 10, 20, 30, 40, 50, 100, 200, 500, 1000, flightTimes.size()};
+  unsigned int limits[]={1, 2, 3, 4, 5, 10, 20, 30, 40, 50, 100, 200, 500, 1000, (unsigned int) flightTimes.size()};
   uint64_t sofar=0;
   cout.setf(std::ios::fixed);
   cout.precision(2);