Skip to content

Commit

Permalink
sugar
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-johnson-4 committed Jan 9, 2024
1 parent b8c5849 commit ad4cdd1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/g.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ fn is_local(program_ctx: &S, s: &str) -> String {
}

//returns (push program, pop program, new program_ctx)
fn destructure_args(helpers_ctx: &S, program_ctx: &S, e: &S, offset: usize) -> (S,S,S) {
fn destructure_args(helpers_ctx: &S, program_ctx: &S, e: &S, offset: i64) -> (S,S,S) {
if is_nil(e) {
( s_nil(), s_nil(), program_ctx.clone() )
} else if head(&e).to_string()=="variable" {
Expand All @@ -161,10 +161,10 @@ fn destructure_args(helpers_ctx: &S, program_ctx: &S, e: &S, offset: usize) -> (
\tmov {}(%rbp), %r13\n \
\tmov {}(%rbp), %r14\n \
\tmov {}(%rbp), %r15\n",
offset*32 + 0,
offset*32 + 8,
offset*32 + 16,
offset*32 + 24
-offset*32 - 8,
-offset*32 - 16,
-offset*32 - 24,
-offset*32 - 32,
));
let program_ctx = kv_add( program_ctx, &vname, &refer );
(push_this, pop_this, program_ctx)
Expand Down

0 comments on commit ad4cdd1

Please sign in to comment.