Skip to content

Commit

Permalink
Fix unnecessary use of BLOCK macro
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 16, 2015
1 parent 73b9e8d commit eb2fc1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ static block gen_binop(block a, block b, int op) {
}

static block gen_format(block a, jv fmt) {
return BLOCK(a, gen_call("format", BLOCK(gen_lambda(gen_const(fmt)))));
return BLOCK(a, gen_call("format", gen_lambda(gen_const(fmt))));
}

static block gen_definedor_assign(block object, block val) {
Expand Down
2 changes: 1 addition & 1 deletion parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ static block gen_binop(block a, block b, int op) {
}

static block gen_format(block a, jv fmt) {
return BLOCK(a, gen_call("format", BLOCK(gen_lambda(gen_const(fmt)))));
return BLOCK(a, gen_call("format", gen_lambda(gen_const(fmt))));
}

static block gen_definedor_assign(block object, block val) {
Expand Down

0 comments on commit eb2fc1d

Please sign in to comment.