]> granicus.if.org Git - pdns/commitdiff
fix building 32 bits builds - rapidjson does not know what to make of an unsigned...
authorBert Hubert <bert.hubert@netherlabs.nl>
Wed, 5 Dec 2012 15:29:26 +0000 (15:29 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Wed, 5 Dec 2012 15:29:26 +0000 (15:29 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2968 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/ws.cc

index ee5d38d40bbca4e3d57022da47e2dcadf2aac0d9..4d1798f0aa8fbaac3e27f4f6afd55fe7693ef6ca 100644 (file)
@@ -502,7 +502,7 @@ string StatWebServer::jsonstat(const string& method, const string& post, const m
       jdi.AddMember("masters", jmasters, doc.GetAllocator()); // ^^^ this makes an actual copy, otherwise the zerocopy behaviour bites us!
       jdi.AddMember("serial", di.serial, doc.GetAllocator());
       jdi.AddMember("notified_serial", di.notified_serial, doc.GetAllocator());
-      jdi.AddMember("last_check", di.last_check, doc.GetAllocator());
+      jdi.AddMember("last_check", (unsigned int) di.last_check, doc.GetAllocator());
       jdomains.PushBack(jdi, doc.GetAllocator());
     }
     doc.AddMember("domains", jdomains, doc.GetAllocator());