Eliminate Windows warnings.
This commit is contained in:
parent
54f68280bd
commit
ccae473783
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue