diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2019-03-11 16:08:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 16:08:50 +0100 |
commit | f9820b7c45ed1ae99fef54944727e98bacbd2a2a (patch) | |
tree | 878e92193d8fdcf641ac689051a14695a9a8d6d4 /src/debug/di | |
parent | 123422de218d6ca5c36cbb7f34ece95dcae333da (diff) | |
parent | 5a97d8e9f14763a4ff90d14d045f0173e8d4b944 (diff) | |
download | coreclr-f9820b7c45ed1ae99fef54944727e98bacbd2a2a.tar.gz coreclr-f9820b7c45ed1ae99fef54944727e98bacbd2a2a.tar.bz2 coreclr-f9820b7c45ed1ae99fef54944727e98bacbd2a2a.zip |
Merge pull request #23093 from franksinankaya/gcc_warnings_9
GCC Signed compare and Narrowing warnings
Diffstat (limited to 'src/debug/di')
-rw-r--r-- | src/debug/di/module.cpp | 4 | ||||
-rw-r--r-- | src/debug/di/rsclass.cpp | 4 | ||||
-rw-r--r-- | src/debug/di/rstype.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/debug/di/module.cpp b/src/debug/di/module.cpp index 1263e710e4..5fb335e6d5 100644 --- a/src/debug/di/module.cpp +++ b/src/debug/di/module.cpp @@ -4460,7 +4460,7 @@ HRESULT CordbNativeCode::EnumerateVariableHomes(ICorDebugVariableHomeEnum **ppEn const DacDbiArrayList<ICorDebugInfo::NativeVarInfo> *pOffsetInfoList = m_nativeVarData.GetOffsetInfoList(); _ASSERTE(pOffsetInfoList != NULL); DWORD countHomes = 0; - for (int i = 0; i < pOffsetInfoList->Count(); i++) + for (unsigned int i = 0; i < pOffsetInfoList->Count(); i++) { const ICorDebugInfo::NativeVarInfo *pNativeVarInfo = &((*pOffsetInfoList)[i]); _ASSERTE(pNativeVarInfo != NULL); @@ -4477,7 +4477,7 @@ HRESULT CordbNativeCode::EnumerateVariableHomes(ICorDebugVariableHomeEnum **ppEn rsHomes = new RSSmartPtr<CordbVariableHome>[countHomes]; DWORD varHomeInd = 0; - for (int i = 0; i < pOffsetInfoList->Count(); i++) + for (unsigned int i = 0; i < pOffsetInfoList->Count(); i++) { const ICorDebugInfo::NativeVarInfo *pNativeVarInfo = &((*pOffsetInfoList)[i]); diff --git a/src/debug/di/rsclass.cpp b/src/debug/di/rsclass.cpp index bfd02c75ec..662e2c0cd6 100644 --- a/src/debug/di/rsclass.cpp +++ b/src/debug/di/rsclass.cpp @@ -808,7 +808,7 @@ void CordbClass::Init(ClassLoadLevel desiredLoadLevel) BOOL CordbClass::GotUnallocatedStatic(DacDbiArrayList<FieldData> * pFieldList) { BOOL fGotUnallocatedStatic = FALSE; - int count = 0; + unsigned int count = 0; while ((count < pFieldList->Count()) && !fGotUnallocatedStatic ) { if ((*pFieldList)[count].OkToGetOrSetStaticAddress() && @@ -1145,7 +1145,7 @@ HRESULT CordbClass::SearchFieldInfo( FieldData **ppFieldData ) { - int i; + unsigned int i; IMetaDataImport * pImport = pModule->GetMetaDataImporter(); // throws diff --git a/src/debug/di/rstype.cpp b/src/debug/di/rstype.cpp index f180982404..a85ab0dcc4 100644 --- a/src/debug/di/rstype.cpp +++ b/src/debug/di/rstype.cpp @@ -1382,7 +1382,7 @@ HRESULT CordbType::InstantiateFromTypeHandle(CordbAppDomain * pAppDomain, // means it will simply assert IsNeutered. DacDbiArrayList<CordbType *> typeList; typeList.Alloc(params.Count()); - for (int i = 0; i < params.Count(); ++i) + for (unsigned int i = 0; i < params.Count(); ++i) { IfFailThrow(TypeDataToType(pAppDomain, &(params[i]), &(typeList[i]))); } |