Code/Tools fixes
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -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 ");
|
||||
|
||||
Reference in New Issue
Block a user