Skip to content

Commit 76d4255

Browse files
authored
Merge pull request o3de#17530 from aws-lumberyard-dev/daimini/dpe/warningsFix
Fix int conversion warnings.
2 parents 80f9428 + e6a459b commit 76d4255

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Code/Framework/AzToolsFramework/AzToolsFramework/Prefab/Spawnable/AssetPlatformComponentRemover.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ namespace AzToolsFramework::Prefab::PrefabConversionUtils
5454
{
5555
// Loop over an entity's components backwards and pop-off components that shouldn't exist.
5656
AZStd::vector<AZ::Component*> components = entity->GetComponents();
57-
const int oldComponentCount = components.size();
58-
for (int i = oldComponentCount - 1; i >= 0; --i)
57+
const auto oldComponentCount = components.size();
58+
for (int i = aznumeric_cast<int>(oldComponentCount) - 1; i >= 0; --i)
5959
{
6060
AZ::Component* component = components[i];
6161
if (excludedComponents.contains(component->GetUnderlyingComponentType()))

Code/Framework/AzToolsFramework/AzToolsFramework/UI/DocumentPropertyEditor/DocumentPropertyEditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ namespace AzToolsFramework
238238
// todo: implement QSplitter-like functionality to allow the user to resize columns within a DPE
239239

240240
// Determine the number of columns.
241-
const int columnCount = m_columnStarts.size();
241+
const int columnCount = aznumeric_cast<int>(m_columnStarts.size());
242242

243243
// Early out if no columns are detected.
244244
if (columnCount == 0)

0 commit comments

Comments
 (0)