Merge branch 'development' into cmake/SPEC-7484
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com> # Conflicts: # Code/Editor/CryEditDoc.cpp # Code/Editor/CryEditDoc.h # Code/Legacy/CryCommon/CryArray.h # Code/Legacy/CryCommon/CryString.h # Code/Legacy/CryCommon/UnicodeBinding.h # Code/Legacy/CrySystem/LocalizedStringManager.cpp # Gems/LyShine/Code/Source/StringUtfUtils.h # Gems/PhysXDebug/Code/Source/SystemComponent.cpp
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#define CRYINCLUDE_CRYCOMMON_CRYARRAY_H
|
||||
#pragma once
|
||||
|
||||
#include "CryLegacyAllocator.h"
|
||||
#include <CryLegacyAllocator.h>
|
||||
#include <AzCore/std/string/string.h>
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
@@ -664,7 +664,7 @@ namespace NArray
|
||||
|
||||
I capacity() const
|
||||
{
|
||||
I aligned_bytes = Align(size() * sizeof(T), sizeof(I));
|
||||
I aligned_bytes = static_cast<I>(Align(size() * sizeof(T), sizeof(I)));
|
||||
if (m_nSizeCap & nCAP_BIT)
|
||||
{
|
||||
// Capacity stored in word following data
|
||||
@@ -682,7 +682,7 @@ namespace NArray
|
||||
// Store size, and assert against overflow.
|
||||
assert(s <= c);
|
||||
m_nSizeCap = s;
|
||||
I aligned_bytes = Align(s * sizeof(T), sizeof(I));
|
||||
I aligned_bytes = static_cast<I>(Align(s * sizeof(T), sizeof(I)));
|
||||
if (c * sizeof(T) >= aligned_bytes + sizeof(I))
|
||||
{
|
||||
// Has extra capacity, more than word-alignment
|
||||
|
||||
Reference in New Issue
Block a user