Skip to content

Commit

Permalink
Spell out ~0L literal (#43579)
Browse files Browse the repository at this point in the history
To avoid the compiler potentially picking the wrong size depending on standards versions.
  • Loading branch information
Keno authored Dec 29, 2021
1 parent f61eb87 commit e8d1167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win32_ucontext.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void jl_makecontext(win32_ucontext_t *ucp, void (*func)(void))
jmpbuf->Rip = (unsigned long long)func;
jmpbuf->Rsp = (unsigned long long)stack_top;
jmpbuf->Rbp = 0;
jmpbuf->Frame = ~0L; // SEH frame
jmpbuf->Frame = ~(uint64_t)0; // SEH frame
#elif defined(_CPU_X86_)
jmpbuf->Eip = (unsigned long)func;
jmpbuf->Esp = (unsigned long)stack_top;
Expand Down

1 comment on commit e8d1167

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily package evaluation, I will reply here when finished:

@nanosoldier runtests(ALL, isdaily = true)

Please sign in to comment.