More fixes for Code/Framework
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -78,7 +78,7 @@ namespace AZ
|
||||
return remaining;
|
||||
}
|
||||
|
||||
if (m_waitEvent && remaining == (m_parent ? 1 : 0))
|
||||
if (m_waitEvent && remaining == (m_parent ? 1u : 0u))
|
||||
{
|
||||
m_waitEvent->Signal();
|
||||
}
|
||||
@@ -259,7 +259,7 @@ namespace AZ
|
||||
}
|
||||
|
||||
bool isRetained = task->m_graph->m_parent != nullptr;
|
||||
if (task->m_graph->Release() == (isRetained ? 1 : 0))
|
||||
if (task->m_graph->Release() == (isRetained ? 1u : 0u))
|
||||
{
|
||||
m_executor->ReleaseGraph();
|
||||
}
|
||||
|
||||
@@ -361,18 +361,19 @@ namespace AzFramework
|
||||
// DebugPrintStack
|
||||
// Prints the Lua stack starting from the bottom.
|
||||
//=========================================================================
|
||||
static void DebugPrintStack(lua_State* lua, const AZStd::string& prefix = "")
|
||||
{
|
||||
AZStd::string dump = prefix;
|
||||
const int stackSize = lua_gettop(lua);
|
||||
for (int stackIdx = 1; stackIdx <= stackSize; ++stackIdx)
|
||||
{
|
||||
dump += PrintLuaValue(lua, stackIdx);
|
||||
dump += " "; // add separator
|
||||
}
|
||||
|
||||
AZ_Warning("ScriptComponent", false, "Stack Dump: '%s'", dump.c_str());
|
||||
}
|
||||
// DO NOT DELETE StackDump is useful to debug the lua stack.
|
||||
//static void DebugPrintStack(lua_State* lua, const AZStd::string& prefix = "")
|
||||
//{
|
||||
// AZStd::string dump = prefix;
|
||||
// const int stackSize = lua_gettop(lua);
|
||||
// for (int stackIdx = 1; stackIdx <= stackSize; ++stackIdx)
|
||||
// {
|
||||
// dump += PrintLuaValue(lua, stackIdx);
|
||||
// dump += " "; // add separator
|
||||
// }
|
||||
//
|
||||
// AZ_Warning("ScriptComponent", false, "Stack Dump: '%s'", dump.c_str());
|
||||
//}
|
||||
|
||||
//=========================================================================
|
||||
// Properties__IndexFindSubtable
|
||||
|
||||
Reference in New Issue
Block a user