Zubin pushed to branch wip/9.14.2-backports at Glasgow Haskell Compiler / GHC
Commits:
-
7ea1e2a4
by Cheng Shao at 2026-06-10T21:19:26+05:30
1 changed file:
Changes:
| ... | ... | @@ -672,7 +672,7 @@ slow_spw(void *Sp, StgStack *cur_stack, StgWord offset_words){ |
| 672 | 672 | }
|
| 673 | 673 | // 2b. Access the element if there is no underflow frame, it must be right
|
| 674 | 674 | // at the top of the stack.
|
| 675 | - else if(Sp_plusW(offset_words) < (StgPtr)(cur_stack->stack + cur_stack->stack_size)) {
|
|
| 675 | + else if(Sp_plusW(offset_words) < (void*)(cur_stack->stack + cur_stack->stack_size)) {
|
|
| 676 | 676 | // Still inside the stack chunk
|
| 677 | 677 | return Sp_plusW(offset_words);
|
| 678 | 678 | } else {
|
| ... | ... | @@ -2468,7 +2468,7 @@ run_BCO: |
| 2468 | 2468 | threadStackUnderflow(cap, cap->r.rCurrentTSO);
|
| 2469 | 2469 | LOAD_STACK_POINTERS;
|
| 2470 | 2470 | by -= sp_to_uf;
|
| 2471 | - } else if (Sp_plusW(by) < (StgPtr)(stk->stack + stk->stack_size)) {
|
|
| 2471 | + } else if (Sp_plusW(by) < (void*)(stk->stack + stk->stack_size)) {
|
|
| 2472 | 2472 | // we're within the first stack chunk, this chunk has
|
| 2473 | 2473 | // no underflow frame
|
| 2474 | 2474 | break;
|