Eliminate Windows warnings.

This commit is contained in:
Adam Ierymenko 2015-11-12 16:51:33 -08:00
parent 54f68280bd
commit ccae473783
2 changed files with 3 additions and 3 deletions

View file

@ -76,7 +76,7 @@ Topology::Topology(const RuntimeEnvironment *renv) :
std::string dsWorld(RR->node->dataStoreGet("world"));
World cachedWorld;
try {
Buffer<ZT_WORLD_MAX_SERIALIZED_LENGTH> dswtmp(dsWorld.data(),dsWorld.length());
Buffer<ZT_WORLD_MAX_SERIALIZED_LENGTH> dswtmp(dsWorld.data(),(unsigned int)dsWorld.length());
cachedWorld.deserialize(dswtmp,0);
} catch ( ... ) {
cachedWorld = World(); // clear if cached world is invalid