Skip to content
Snippets Groups Projects
Commit 006bb4f3 authored by Sven Tennie's avatar Sven Tennie :smiley_cat: Committed by Marge Bot
Browse files

Better parameter name

The call-site uses the term "offset", too.
parent 6beb6ac2
No related branches found
No related tags found
No related merge requests found
......@@ -8,14 +8,14 @@
#include "rts/storage/FunTypes.h"
#include "rts/storage/InfoTables.h"
StgWord stackFrameSize(StgStack *stack, StgWord index) {
StgClosure *c = (StgClosure *)stack->sp + index;
StgWord stackFrameSize(StgStack *stack, StgWord offset) {
StgClosure *c = (StgClosure *)stack->sp + offset;
ASSERT(LOOKS_LIKE_CLOSURE_PTR(c));
return stack_frame_sizeW(c);
}
StgStack *getUnderflowFrameStack(StgStack *stack, StgWord index) {
StgClosure *frame = (StgClosure *)stack->sp + index;
StgStack *getUnderflowFrameStack(StgStack *stack, StgWord offset) {
StgClosure *frame = (StgClosure *)stack->sp + offset;
ASSERT(LOOKS_LIKE_CLOSURE_PTR(frame));
const StgRetInfoTable *info = get_ret_itbl((StgClosure *)frame);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment