diff vamp-server/simple-server.cpp @ 140:807a0a43096e

Fix a couple more compiler warnings
author Chris Cannam <c.cannam@qmul.ac.uk>
date Thu, 12 Jan 2017 09:00:35 +0000
parents b01dac674beb
children c3ddc4a72561
line wrap: on
line diff
--- a/vamp-server/simple-server.cpp	Thu Jan 12 08:49:36 2017 +0000
+++ b/vamp-server/simple-server.cpp	Thu Jan 12 09:00:35 2017 +0000
@@ -202,7 +202,7 @@
 
     if (j["id"].is_number()) {
         id.type = RequestOrResponse::RpcId::Number;
-        id.number = j["id"].number_value();
+        id.number = int(round(j["id"].number_value()));
     } else if (j["id"].is_string()) {
         id.type = RequestOrResponse::RpcId::Tag;
         id.tag = j["id"].string_value();