diff options
author | Sinan Kaya <sinan.kaya@microsoft.com> | 2019-03-11 18:12:01 +0000 |
---|---|---|
committer | Sinan Kaya <sinan.kaya@microsoft.com> | 2019-03-14 01:24:48 +0000 |
commit | 211e8c028d2ce217ea51b681f9dbe52968280d32 (patch) | |
tree | cd46ddc833be2c44c72afa77bf9aca5472375d35 | |
parent | f1533899b70c634be152c4ad19db99fd5fa79725 (diff) | |
download | coreclr-211e8c028d2ce217ea51b681f9dbe52968280d32.tar.gz coreclr-211e8c028d2ce217ea51b681f9dbe52968280d32.tar.bz2 coreclr-211e8c028d2ce217ea51b681f9dbe52968280d32.zip |
signedness conversion
-rw-r--r-- | src/vm/eventtrace.cpp | 2 | ||||
-rw-r--r-- | src/vm/eventtracepriv.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/eventtrace.cpp b/src/vm/eventtrace.cpp index c7cfc319e0..92f94ca757 100644 --- a/src/vm/eventtrace.cpp +++ b/src/vm/eventtrace.cpp @@ -1732,7 +1732,7 @@ int BulkTypeEventLogger::LogSingleType(TypeHandle th) FireBulkTypeEvent(); } - _ASSERTE(m_nBulkTypeValueCount < _countof(m_rgBulkTypeValues)); + _ASSERTE(m_nBulkTypeValueCount < (int)_countof(m_rgBulkTypeValues)); if (!th.IsTypeDesc() && th.GetMethodTable()->IsArray()) { diff --git a/src/vm/eventtracepriv.h b/src/vm/eventtracepriv.h index 8e06daf5fd..748fcd69ef 100644 --- a/src/vm/eventtracepriv.h +++ b/src/vm/eventtracepriv.h @@ -120,7 +120,7 @@ struct EventStaticEntry // sizeRemaining must be larger than the structure + 1 wchar for the struct and // null terminator of Name. We will do a better bounds check when we know the // size of the field name. - if (sizeRemaining < sizeof(EventStaticEntry) + sizeof(wchar_t)) + if (sizeRemaining < (int)(sizeof(EventStaticEntry) + sizeof(wchar_t))) return -1; // The location in the structure to write to. We won't actually write here unless we have sufficient buffer. |