Skip to content

Commit 6444a6b

Browse files
committed
1 parent baddcf0 commit 6444a6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/_TestingInternals/Discovery.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@ static void enumerateTypeMetadataSections(const SectionEnumerator& body) {
385385
if (!EnumProcessModules(GetCurrentProcess(), &hModules[0], hModules.size() * sizeof(HMODULE), &byteCountNeeded)) {
386386
return;
387387
}
388-
DWORD hModuleCount = std::min(hModules.size(), byteCountNeeded / sizeof(HMODULE));
388+
DWORD hModuleCount = std::min(static_cast<DWORD>(hModules.size()),
389+
static_cast<DWORD>(byteCountNeeded / sizeof(HMODULE)));
389390

390391
// Look in all the loaded modules for Swift type metadata sections and store
391392
// them in a side table.

0 commit comments

Comments
 (0)