aboutsummaryrefslogtreecommitdiff
path: root/src/compile/comparisons.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2026-01-11 20:06:45 -0500
committerBruce Hill <bruce@bruce-hill.com>2026-01-11 20:06:45 -0500
commitb97ea6b6ac3498b21321e1f93ccc1a2dd145e9d7 (patch)
tree834180f2c5a2ad29424279153d01c2bd52679823 /src/compile/comparisons.c
parent573656fce2b7e1b0fc36944f60fd135117b6bbb6 (diff)
Rename AST nodes: Int -> Integer, Num -> Number
Diffstat (limited to 'src/compile/comparisons.c')
-rw-r--r--src/compile/comparisons.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compile/comparisons.c b/src/compile/comparisons.c
index 99f220e3..5a02735f 100644
--- a/src/compile/comparisons.c
+++ b/src/compile/comparisons.c
@@ -30,9 +30,9 @@ Text_t compile_comparison(env_t *env, ast_t *ast) {
type_t *operand_t;
if (type_eq(lhs_t, rhs_t)) {
operand_t = lhs_t;
- } else if (binop.lhs->tag == Int && is_numeric_type(rhs_t)) {
+ } else if (binop.lhs->tag == Integer && is_numeric_type(rhs_t)) {
operand_t = rhs_t;
- } else if (binop.rhs->tag == Int && is_numeric_type(lhs_t)) {
+ } else if (binop.rhs->tag == Integer && is_numeric_type(lhs_t)) {
operand_t = lhs_t;
} else if (can_compile_to_type(with_enum_scope(env, lhs_t), binop.rhs, lhs_t)) {
operand_t = lhs_t;
@@ -75,9 +75,9 @@ Text_t compile_comparison(env_t *env, ast_t *ast) {
type_t *operand_t;
if (type_eq(lhs_t, rhs_t)) {
operand_t = lhs_t;
- } else if (cmp.lhs->tag == Int && is_numeric_type(rhs_t)) {
+ } else if (cmp.lhs->tag == Integer && is_numeric_type(rhs_t)) {
operand_t = rhs_t;
- } else if (cmp.rhs->tag == Int && is_numeric_type(lhs_t)) {
+ } else if (cmp.rhs->tag == Integer && is_numeric_type(lhs_t)) {
operand_t = lhs_t;
} else if (can_compile_to_type(env, cmp.rhs, lhs_t)) {
operand_t = lhs_t;