Skip to content

Commit

Permalink
Use break instead of return for better efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
HPCguy authored and HPCguy committed Nov 25, 2022
1 parent 22dde31 commit 59a0965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amacc.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ void expr(int lev)
else tk = Shl + (tk - ShlAssign);
tk |= REENTRANT; compound = 1; expr(Assign);
*--n = (int) (b + 2); *--n = ty = t; *--n = Assign;
return;
break;
case Cond: // `x?a:b` is similar to if except that it relies on else
next(); expr(Assign);
if (tk != ':') fatal("conditional missing colon");
Expand Down

0 comments on commit 59a0965

Please sign in to comment.