summaryrefslogtreecommitdiff
path: root/src/coreclr
diff options
context:
space:
mode:
authorAdeel <adeelbm@outlook.com>2019-02-24 12:14:06 -0800
committerAdeel <adeelbm@outlook.com>2019-02-24 15:53:32 -0800
commitdc19f81f05dd2559af329c528c2f04e869d8ef1e (patch)
treea61fb44fa2b31ec85e2daf9e670f01a6c4f97e59 /src/coreclr
parent333232d98639df980133205c41791cb9dc7f3d34 (diff)
downloadcoreclr-dc19f81f05dd2559af329c528c2f04e869d8ef1e.tar.gz
coreclr-dc19f81f05dd2559af329c528c2f04e869d8ef1e.tar.bz2
coreclr-dc19f81f05dd2559af329c528c2f04e869d8ef1e.zip
Fix comparison and narrowing errors reported by GCC
Diffstat (limited to 'src/coreclr')
-rw-r--r--src/coreclr/hosts/unixcoreruncommon/coreruncommon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coreclr/hosts/unixcoreruncommon/coreruncommon.cpp b/src/coreclr/hosts/unixcoreruncommon/coreruncommon.cpp
index eb2333c8c6..7bfe2eaa98 100644
--- a/src/coreclr/hosts/unixcoreruncommon/coreruncommon.cpp
+++ b/src/coreclr/hosts/unixcoreruncommon/coreruncommon.cpp
@@ -190,7 +190,7 @@ void AddFilesFromDirectoryToTpaList(const char* directory, std::string& tpaList)
// Walk the directory for each extension separately so that we first get files with .ni.dll extension,
// then files with .dll extension, etc.
- for (int extIndex = 0; extIndex < sizeof(tpaExtensions) / sizeof(tpaExtensions[0]); extIndex++)
+ for (size_t extIndex = 0; extIndex < sizeof(tpaExtensions) / sizeof(tpaExtensions[0]); extIndex++)
{
const char* ext = tpaExtensions[extIndex];
int extLength = strlen(ext);