Mercurial > hg > piper-cpp
comparison 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 |
comparison
equal
deleted
inserted
replaced
139:1c58149b64a2 | 140:807a0a43096e |
---|---|
200 { | 200 { |
201 RequestOrResponse::RpcId id; | 201 RequestOrResponse::RpcId id; |
202 | 202 |
203 if (j["id"].is_number()) { | 203 if (j["id"].is_number()) { |
204 id.type = RequestOrResponse::RpcId::Number; | 204 id.type = RequestOrResponse::RpcId::Number; |
205 id.number = j["id"].number_value(); | 205 id.number = int(round(j["id"].number_value())); |
206 } else if (j["id"].is_string()) { | 206 } else if (j["id"].is_string()) { |
207 id.type = RequestOrResponse::RpcId::Tag; | 207 id.type = RequestOrResponse::RpcId::Tag; |
208 id.tag = j["id"].string_value(); | 208 id.tag = j["id"].string_value(); |
209 } else { | 209 } else { |
210 id.type = RequestOrResponse::RpcId::Absent; | 210 id.type = RequestOrResponse::RpcId::Absent; |