From 742fd6951390863da252708fc7fc8e58b501ef51 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 31 Jul 2026 22:24:58 +0900 Subject: [PATCH] internal/fakecgo: compilation error for old Go PureGo 0.10 needs to support Go 1.18 where range over integers is not available. This change fixes this. Updates #485 --- internal/fakecgo/threadentry_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/fakecgo/threadentry_test.go b/internal/fakecgo/threadentry_test.go index b6b27c5f..f029ece6 100644 --- a/internal/fakecgo/threadentry_test.go +++ b/internal/fakecgo/threadentry_test.go @@ -33,10 +33,10 @@ func TestThreadEntryReturn(t *testing.T) { // enough to catch a broken teardown while staying quick under emulation. const rounds = 10 const workers = 16 - for range rounds { + for i := 0; i < rounds; i++ { var wg sync.WaitGroup wg.Add(workers) - for range workers { + for j := 0; j < workers; j++ { go func() { defer wg.Done() runtime.LockOSThread()