# HG changeset patch # User Chris Cannam # Date 1476273093 -3600 # Node ID 5a80e00375b1723cd281170a59212ccba93aa2aa # Parent 1b7c11bc5a88940b6f7fa86845387f682bb14a10 Cast number types diff -r 1b7c11bc5a88 -r 5a80e00375b1 vamp-json/VampJson.h --- a/vamp-json/VampJson.h Wed Oct 12 12:51:29 2016 +0100 +++ b/vamp-json/VampJson.h Wed Oct 12 12:51:33 2016 +0100 @@ -869,7 +869,7 @@ json11::Json::object jo; - jo["handle"] = pmapper.pluginToHandle(cr.plugin); + jo["handle"] = double(pmapper.pluginToHandle(cr.plugin)); jo["configuration"] = fromPluginConfiguration(cr.configuration); return json11::Json(jo); @@ -899,7 +899,7 @@ json11::Json::object jo; - jo["handle"] = pmapper.pluginToHandle(cr.plugin); + jo["handle"] = double(pmapper.pluginToHandle(cr.plugin)); json11::Json::array outs; for (auto &d: cr.outputs) { @@ -937,7 +937,7 @@ BufferSerialisation serialisation) { json11::Json::object jo; - jo["handle"] = pmapper.pluginToHandle(r.plugin); + jo["handle"] = double(pmapper.pluginToHandle(r.plugin)); json11::Json::object io; io["timestamp"] = fromRealTime(r.timestamp); @@ -1171,7 +1171,7 @@ markRPC(jo); json11::Json::object po; - po["handle"] = pmapper.pluginToHandle(resp.plugin); + po["handle"] = double(pmapper.pluginToHandle(resp.plugin)); po["features"] = fromFeatureSet(resp.features, *pmapper.pluginToOutputIdMapper(resp.plugin), serialisation); @@ -1190,7 +1190,7 @@ markRPC(jo); json11::Json::object fo; - fo["handle"] = pmapper.pluginToHandle(req.plugin); + fo["handle"] = double(pmapper.pluginToHandle(req.plugin)); jo["method"] = "finish"; jo["params"] = fo; @@ -1208,7 +1208,7 @@ markRPC(jo); json11::Json::object po; - po["handle"] = pmapper.pluginToHandle(resp.plugin); + po["handle"] = double(pmapper.pluginToHandle(resp.plugin)); po["features"] = fromFeatureSet(resp.features, *pmapper.pluginToOutputIdMapper(resp.plugin), serialisation);