Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions shift0.S
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ reset_arg:
.cfi_offset 7, -20
# allocate the new stack
pushl $STACKSIZE
# it would be nice if caller could specify a desired stack size
call malloc
addl $4, %esp
# push the stack on the stack of stacks
Expand Down
2 changes: 1 addition & 1 deletion shift0ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void *_shift_arg_internal(struct cont *c, struct shift_str *s)

void *shift_arg(shiftable_arg_t f, void *arg)
{
struct shift_str s;
struct shift_str s; /* this looks like it could get overridden after return */
s.f = f;
s.arg = arg;
return shift0_arg((shiftable_arg_t) _shift_arg_internal, (void*) &s);
Expand Down