Skip to content

Commit 4a93869

Browse files
committed
fix #21 typo of expression_type
1 parent 1dcc6ef commit 4a93869

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

xc-tutor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ void expression(int level) {
441441
// emit code, default behaviour is to load the value of the
442442
// address which is stored in `ax`
443443
expr_type = id[Type];
444-
*++text = (expr_type == Char) ? LC : LI;
444+
*++text = (expr_type == CHAR) ? LC : LI;
445445
}
446446
}
447447
else if (token == '(') {

xc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ void expression(int level) {
465465
// emit code, default behaviour is to load the value of the
466466
// address which is stored in `ax`
467467
expr_type = id[Type];
468-
*++text = (expr_type == Char) ? LC : LI;
468+
*++text = (expr_type == CHAR) ? LC : LI;
469469
}
470470
}
471471
else if (token == '(') {

0 commit comments

Comments
 (0)