Code/Tools fixes

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-16 15:55:41 -07:00
parent 14990012f8
commit b255334535
11 changed files with 18 additions and 20 deletions
@@ -38,7 +38,7 @@ bool BatchApplicationServer::startListening(unsigned short port)
// Since we're starting up builders ourselves and informing them of the port chosen, we can scan for a free port
while (!listen(QHostAddress::Any, m_serverListeningPort))
while (!listen(QHostAddress::Any, static_cast<quint16>(m_serverListeningPort)))
{
auto error = serverError();
@@ -197,7 +197,7 @@ namespace AssetProcessor
}
else if (valueName == "order")
{
scanFolderEntry.m_scanOrder = value;
scanFolderEntry.m_scanOrder = static_cast<int>(value);
}
}
@@ -475,7 +475,7 @@ namespace AssetProcessor
RCAssetRecognizer& assetRecognizer = *assetRecognizerEntryIt;
if (valueName == "priority")
{
assetRecognizer.m_recognizer.m_priority = value;
assetRecognizer.m_recognizer.m_priority = static_cast<int>(value);
}
}
@@ -49,7 +49,7 @@ void UnitTestShaderCompilerServer::startServer()
{
if (!m_server->isListening())
{
if (!m_server->listen(QHostAddress(m_serverAddress), m_serverPort))
if (!m_server->listen(QHostAddress(m_serverAddress), static_cast<quint16>(m_serverPort)))
{
AZ_TracePrintf(AssetProcessor::DebugChannel, "Server %s could not start.\n", m_serverAddress.toUtf8().data());
emit errorMessage("Server could not start ");