Fix compilation ambiguity for system jsoncpp

In upstream JsonCpp there are two [] operators for Json::Value - one taking unsigned int, second taking int - passing long int leads to ambiguity.
This commit is contained in:
Juraj Komacka
2016-03-28 19:15:13 +02:00
parent 1109e399ec
commit 5b4f0e5995

View File

@@ -367,7 +367,7 @@ void Keyframe::SetJsonValue(Json::Value root) {
if (!root["Points"].isNull())
// loop through points
for (long int x = 0; x < root["Points"].size(); x++) {
for (unsigned int x = 0; x < root["Points"].size(); x++) {
// Get each point
Json::Value existing_point = root["Points"][x];