Skip to content

Commit 155b5ee

Browse files
authored
Fix warnings as part of security wave 1 (#528)
* Update EventTraceHelper.cpp fix warning * Update BindingUtilities.cpp fix warning
1 parent 02b5868 commit 155b5ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tools/WinMLRunner/src/BindingUtilities.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ namespace BindingUtilities
653653
{
654654
if (dim > 0)
655655
{
656-
length *= dim;
656+
length *= int(dim);
657657
}
658658
}
659659

Tools/WinMLRunner/src/EventTraceHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static void RemoveTrailingSpace(PEVENT_MAP_INFO pMapInfo)
3030

3131
for (DWORD i = 0; i < pMapInfo->EntryCount; i++)
3232
{
33-
byteLength = (wcslen((LPWSTR)((PBYTE)pMapInfo + pMapInfo->MapEntryArray[i].OutputOffset)) - 1) * 2;
33+
byteLength = DWORD(wcslen((LPWSTR)((PBYTE)pMapInfo + pMapInfo->MapEntryArray[i].OutputOffset)) - 1) * 2;
3434
*((LPWSTR)((PBYTE)pMapInfo + (pMapInfo->MapEntryArray[i].OutputOffset + byteLength))) = L'\0';
3535
}
3636
}

0 commit comments

Comments
 (0)