From 644ec69311cfaf1452f98e69f049593d8c7aa733 Mon Sep 17 00:00:00 2001 From: Hiroshi Yamauchi Date: Tue, 24 Sep 2024 14:32:20 -0700 Subject: [PATCH] Fix the windows build https://ci-external.swift.org/job/swift-main-windows-toolchain/630/console --- Sources/_TestingInternals/Discovery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/_TestingInternals/Discovery.cpp b/Sources/_TestingInternals/Discovery.cpp index 975541f13..faf37f395 100644 --- a/Sources/_TestingInternals/Discovery.cpp +++ b/Sources/_TestingInternals/Discovery.cpp @@ -385,7 +385,7 @@ static void enumerateTypeMetadataSections(const SectionEnumerator& body) { if (!EnumProcessModules(GetCurrentProcess(), &hModules[0], hModules.size() * sizeof(HMODULE), &byteCountNeeded)) { return; } - DWORD hModuleCount = std::min(hModules.size(), byteCountNeeded / sizeof(HMODULE)); + size_t hModuleCount = std::min(hModules.size(), static_cast(byteCountNeeded) / sizeof(HMODULE)); // Look in all the loaded modules for Swift type metadata sections and store // them in a side table.