From 11d076e1a3fe049cabcd72d5dd15d92446d01498 Mon Sep 17 00:00:00 2001 From: Carl Woffenden Date: Fri, 20 Nov 2020 18:54:36 +0100 Subject: [PATCH] Minor clarity (and somrething to rerun Appveyor) --- encoder/basisu_enc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/encoder/basisu_enc.cpp b/encoder/basisu_enc.cpp index b6395c60..ab75f052 100644 --- a/encoder/basisu_enc.cpp +++ b/encoder/basisu_enc.cpp @@ -1667,7 +1667,8 @@ namespace basisu WORD const numGroups = GetActiveProcessorGroupCount(); if (numGroups > 1) { GROUP_AFFINITY affinity; - for (size_t index = 0; index < threads;) { + size_t index = 0; + while (index < threads) { for (WORD group = 0; group < numGroups; ++group) { if (DWORD groupCpus = GetMaximumProcessorCount(group)) { for (; groupCpus > 0; --groupCpus) {