Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
More violations
  • Loading branch information
AaronRobinsonMSFT committed Jun 7, 2022
commit 2ee634b40a2462c03ca9b75ac7c74bc4dbfdd2ec
4 changes: 2 additions & 2 deletions src/coreclr/pal/src/cruntime/silent_printf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ int Silent_PAL_vfprintf(PAL_FILE *stream, const char *format, va_list aparg)
TempInt = va_arg(ap, INT); /* value not used */
}

TempWChar = va_arg(ap, int);
TempWChar = (WCHAR)va_arg(ap, int);
Length = Silent_WideCharToMultiByte(&TempWChar, 1, TempBuffer, 4);
if (!Length)
{
Expand Down Expand Up @@ -204,7 +204,7 @@ int Silent_PAL_vfprintf(PAL_FILE *stream, const char *format, va_list aparg)

if (Prefix == PFF_PREFIX_SHORT)
{
*(va_arg(ap, short *)) = written;
*(va_arg(ap, short *)) = (short)written;
}
else
{
Expand Down
6 changes: 3 additions & 3 deletions src/coreclr/utilcode/clrconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,8 @@ void CLRConfig::Initialize()
if (CLRConfig::GetConfigValue(CLRConfig::EXTERNAL_DisableConfigCache) != 0)
return;

const WCHAR prefixC = towlower(COMPLUS_PREFIX[0]);
const WCHAR prefixD = towlower(DOTNET_PREFIX[0]);
const WCHAR prefixC = (WCHAR)towlower(COMPLUS_PREFIX[0]);
const WCHAR prefixD = (WCHAR)towlower(DOTNET_PREFIX[0]);

// Create a cache of environment variables
WCHAR* wszStrings = GetEnvironmentStringsW();
Expand All @@ -645,7 +645,7 @@ void CLRConfig::Initialize()
// null terminated strings
for(WCHAR *wszCurr = wszStrings; *wszCurr; wszCurr++)
{
WCHAR wch = towlower(*wszCurr);
WCHAR wch = (WCHAR)towlower(*wszCurr);

// Lets only cache env variables with targeted prefixes
bool matchC = wch == prefixC;
Expand Down
2 changes: 1 addition & 1 deletion src/mono/mono/eventpipe/ep-rt-mono.c
Original file line number Diff line number Diff line change
Expand Up @@ -3274,7 +3274,7 @@ ep_rt_mono_log_single_type (
// NOTE: If name is actively used, set it to NULL and relevant memory management to reduce byte count
// This type is apparently so huge, it's too big to squeeze into an event, even
// if it were the only type batched in the whole event. Bail
mono_trace (G_LOG_LEVEL_ERROR, MONO_TRACE_DIAGNOSTICS, "Failed to log single mono type %p with typeID %llu. Type is too large for the BulkType Event.\n", (gpointer)mono_type, val->fixed_sized_data.type_id);
mono_trace (G_LOG_LEVEL_ERROR, MONO_TRACE_DIAGNOSTICS, "Failed to log single mono type %p with typeID %llu. Type is too large for the BulkType Event.\n", (gpointer)mono_type, (unsigned long long)val->fixed_sized_data.type_id);
return -1;
}

Expand Down