Skip to content

Commit fea2e84

Browse files
KenoKristofferC
authored andcommitted
Spell out ~0L literal (#43579)
To avoid the compiler potentially picking the wrong size depending on standards versions. (cherry picked from commit e8d1167)
1 parent f476e1d commit fea2e84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/support/win32_ucontext.c

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

0 commit comments

Comments
 (0)