Skip to content

Commit 644ec69

Browse files
committed
1 parent baddcf0 commit 644ec69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/_TestingInternals/Discovery.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ 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+
size_t hModuleCount = std::min(hModules.size(), static_cast<size_t>(byteCountNeeded) / sizeof(HMODULE));
389389

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

0 commit comments

Comments
 (0)