From: bert hubert Date: Mon, 12 Jan 2015 09:32:48 +0000 (+0100) Subject: should fix up rapidjson error on OSX X-Git-Tag: rec-3.7.0-rc1~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e258fd114c9574857e0e623de3760f425ac1ca18;p=thirdparty%2Fpdns.git should fix up rapidjson error on OSX --- diff --git a/pdns/ws-recursor.cc b/pdns/ws-recursor.cc index 51bf165f48..cfb952f40c 100644 --- a/pdns/ws-recursor.cc +++ b/pdns/ws-recursor.cc @@ -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());