From e258fd114c9574857e0e623de3760f425ac1ca18 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Mon, 12 Jan 2015 10:32:48 +0100 Subject: [PATCH] should fix up rapidjson error on OSX --- pdns/ws-recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/ws-recursor.cc b/pdns/ws-recursor.cc index 51bf165f4..cfb952f40 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()); -- 2.40.0