Skip to content

Commit 6e397fd

Browse files
authored
Merge branch 'IUCompilerCourse:master' into master
2 parents 2d14367 + 75b7fb5 commit 6e397fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,7 @@ \section{Example Compiler: A Partial Evaluator}
17231723
case BinOp(left, Add(), right):
17241724
return pe_add(pe_exp(left), pe_exp(right))
17251725
case BinOp(left, Sub(), right):
1726-
return pe_add(pe_exp(left), pe_neg(right))
1726+
return pe_add(pe_exp(left), pe_neg(pe_exp(right)))
17271727
case UnaryOp(USub(), v):
17281728
return pe_neg(pe_exp(v))
17291729
case Constant(value):

0 commit comments

Comments
 (0)