o3de / o3de-multiplayersample

Multiplayer sample project for the Open 3D Engine
https://o3de.org
Other
82 stars 59 forks source link

Fix formatting error related to linux integer types #460

Closed spham-amzn closed 1 year ago

spham-amzn commented 1 year ago

Fixes the following Linux compile error:

PRIu64/home/o3de/github/o3de-multiplayersample/MPSGameLift/Code/Source/MatchmakingSystemComponent.cpp:267:85: error: format specifies type 'long long' but the argument has type 'std::chrono::duration<long, std::ratio<1, 1000>>::rep' (aka 'long') [-Werror,-Wformat]
            httpLatenciesParam += AZStd::string::format("%s_%lld ", region.c_str(), latencyMs.count());
AMZN-Gene commented 1 year ago

Also just casting to uint32 here: https://github.com/o3de/o3de-multiplayersample/pull/458