Fix EMotionFX Editor tests to compile with -Wshorten-64-to-32

Signed-off-by: Chris Burel <burelc@amazon.com>
This commit is contained in:
Chris Burel
2021-06-25 17:48:11 -07:00
parent 0547a1085a
commit 5602507024
12 changed files with 30 additions and 30 deletions
@@ -41,7 +41,7 @@ namespace EMotionFX
CommandSystem::CreateAnimGraphNode(/*commandGroup=*/nullptr, animGraph, azrtti_typeid<EMotionFX::AnimGraphReferenceNode>(), "Reference", currentNode, 0, 0);
// Check the expected node now exists.
uint32 numNodes = currentNode->GetNumChildNodes();
size_t numNodes = currentNode->GetNumChildNodes();
EXPECT_EQ(1, numNodes);
// Undo.
@@ -49,7 +49,7 @@ namespace EMotionFX
ASSERT_TRUE(undoAction);
undoAction->trigger();
const uint32 numNodesAfterUndo = currentNode->GetNumChildNodes();
const size_t numNodesAfterUndo = currentNode->GetNumChildNodes();
ASSERT_EQ(numNodesAfterUndo, numNodes - 1);
// Redo.
@@ -57,7 +57,7 @@ namespace EMotionFX
ASSERT_TRUE(redoAction);
redoAction->trigger();
const uint32 numNodesAfterRedo = currentNode->GetNumChildNodes();
const size_t numNodesAfterRedo = currentNode->GetNumChildNodes();
ASSERT_EQ(numNodesAfterRedo, numNodesAfterUndo + 1);
}
} // namespace EMotionFX