Skip to content

Commit e8d1167

Browse files
authored
Spell out ~0L literal (#43579)
To avoid the compiler potentially picking the wrong size depending on standards versions.
1 parent f61eb87 commit e8d1167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/win32_ucontext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void jl_makecontext(win32_ucontext_t *ucp, void (*func)(void))
7171
jmpbuf->Rip = (unsigned long long)func;
7272
jmpbuf->Rsp = (unsigned long long)stack_top;
7373
jmpbuf->Rbp = 0;
74-
jmpbuf->Frame = ~0L; // SEH frame
74+
jmpbuf->Frame = ~(uint64_t)0; // SEH frame
7575
#elif defined(_CPU_X86_)
7676
jmpbuf->Eip = (unsigned long)func;
7777
jmpbuf->Esp = (unsigned long)stack_top;

0 commit comments

Comments
 (0)