From 0120c0da18ef2679e869928fd499580bf4c1a0f1 Mon Sep 17 00:00:00 2001 From: Mark Abraham Date: Thu, 5 Sep 2024 08:38:08 +0200 Subject: [PATCH] Clarify auto type for MSVC --- src/gromacs/hardware/tests/device_management.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gromacs/hardware/tests/device_management.cpp b/src/gromacs/hardware/tests/device_management.cpp index 3b04da6354..055aeac15d 100644 --- a/src/gromacs/hardware/tests/device_management.cpp +++ b/src/gromacs/hardware/tests/device_management.cpp @@ -112,30 +112,30 @@ std::string uuidToString(const std::array& uuid) // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, where every x represents 4 bits std::string result; result.reserve(37); - const auto* uuidIt = uuid.cbegin(); + const unsigned int* uuidIt = uuid.cbegin(); for (int i = 0; i < 4; ++i, ++uuidIt) { - result += gmx::formatString("%2.2x", static_cast(*uuidIt)); + result += gmx::formatString("%2.2x", *uuidIt); } result.append(1, '-'); for (int i = 0; i < 2; ++i, ++uuidIt) { - result += gmx::formatString("%2.2x", static_cast(*uuidIt)); + result += gmx::formatString("%2.2x", *uuidIt); } result.append(1, '-'); for (int i = 0; i < 2; ++i, ++uuidIt) { - result += gmx::formatString("%2.2x", static_cast(*uuidIt)); + result += gmx::formatString("%2.2x", *uuidIt); } result.append(1, '-'); for (int i = 0; i < 2; ++i, ++uuidIt) { - result += gmx::formatString("%2.2x", static_cast(*uuidIt)); + result += gmx::formatString("%2.2x", *uuidIt); } result.append(1, '-'); for (int i = 0; i < 6; ++i, ++uuidIt) { - result += gmx::formatString("%2.2x", static_cast(*uuidIt)); + result += gmx::formatString("%2.2x", *uuidIt); } return result; }