diff options
author | Sinan Kaya <sinan.kaya@microsoft.com> | 2019-03-07 02:25:21 +0000 |
---|---|---|
committer | Sinan Kaya <sinan.kaya@microsoft.com> | 2019-03-07 20:17:42 +0000 |
commit | 5a97d8e9f14763a4ff90d14d045f0173e8d4b944 (patch) | |
tree | cc365cbf3d7ed74e151af38bfc4dd315b780ae51 /src/debug/di | |
parent | b1f7195e26d8e0eb310515fe44d02883375c9ec3 (diff) | |
download | coreclr-5a97d8e9f14763a4ff90d14d045f0173e8d4b944.tar.gz coreclr-5a97d8e9f14763a4ff90d14d045f0173e8d4b944.tar.bz2 coreclr-5a97d8e9f14763a4ff90d14d045f0173e8d4b944.zip |
Fix signed compare warnings
warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
conversions
Update src/ToolBox/superpmi/mcs/verbdumptoc.cpp
Co-Authored-By: franksinankaya <41809318+franksinankaya@users.noreply.github.com>
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]))); } |