]> granicus.if.org Git - pdns/commitdiff
should fix up rapidjson error on OSX
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 12 Jan 2015 09:32:48 +0000 (10:32 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Mon, 12 Jan 2015 09:32:48 +0000 (10:32 +0100)
pdns/ws-recursor.cc

index 51bf165f48f305c90a400dc30436632a66838319..cfb952f40c5f3b7cbf59f949926122c317d951a8 100644 (file)
@@ -579,7 +579,7 @@ void RecursorWebServer::jsonstat(HttpRequest* req, HttpResponse *resp)
     if(queries.size() != totIncluded) {
       Value arr;
       arr.SetArray();
-      arr.PushBack(queries.size()-totIncluded, doc.GetAllocator());
+      arr.PushBack((unsigned int)(queries.size()-totIncluded), doc.GetAllocator());
       arr.PushBack("", doc.GetAllocator());
       arr.PushBack("", doc.GetAllocator());
       entries.PushBack(arr, doc.GetAllocator());