Mercurial > hg > piper-cpp
changeset 86:5a80e00375b1
Cast number types
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 12 Oct 2016 12:51:33 +0100 |
parents | 1b7c11bc5a88 |
children | 7a77a374b6b2 |
files | vamp-json/VampJson.h |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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);