Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Commit c2f4ed3

Browse files
greynewellclaude
andcommitted
fix: address type mismatch in Windows pregen lock
Fix build error on Windows where windows.WAIT_TIMEOUT (syscall.Errno) was compared directly with the uint32 result from WaitForSingleObject. Co-Authored-By: Grey Newell <greyshipscode@gmail.com> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Made-with: Cursor
1 parent 050f26a commit c2f4ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/pregenlock_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func acquirePregenLock(path string) (unlock func(), acquired bool, err error) {
4141
return nil, false, err
4242
}
4343

44-
if event == windows.WAIT_TIMEOUT {
44+
if event == uint32(windows.WAIT_TIMEOUT) {
4545
// Another pregen instance already holds the mutex.
4646
windows.CloseHandle(h)
4747
return nil, false, nil

0 commit comments

Comments
 (0)