aboutsummaryrefslogtreecommitdiff
path: root/src/compile/binops.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-06 14:34:38 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-06 14:34:38 -0400
commitcdb326a6e74e80bea9bffbeaaff1c5d1f4c9e733 (patch)
treeebb0cda65aae134746acd9dbe6e9b919284b9a4c /src/compile/binops.c
parentaa15f0f78214cefa9fabace61c119e01812a3050 (diff)
Code cleanup
Diffstat (limited to 'src/compile/binops.c')
-rw-r--r--src/compile/binops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile/binops.c b/src/compile/binops.c
index 87fd2c7a..ed4aaeba 100644
--- a/src/compile/binops.c
+++ b/src/compile/binops.c
@@ -67,7 +67,7 @@ Text_t compile_binary_op(env_t *env, ast_t *ast) {
}
}
} else if ((ast->tag == Divide || ast->tag == Mod || ast->tag == Mod1) && is_numeric_type(rhs_t)) {
- b = get_namespace_binding(env, binop.lhs, binop_method_name(ast->tag));
+ b = get_namespace_binding(env, binop.lhs, binop_info[ast->tag].method_name);
if (b && b->type->tag == FunctionType) {
DeclareMatch(fn, b->type, FunctionType);
if (type_eq(fn->ret, lhs_t)) {