summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-02-21 18:40:03 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-02-21 18:40:03 +0900
commitcb40432c74b9c5f785e8be53cbda981a64d47c72 (patch)
treebecaa3b854373b90d236d1c04022fcb8ee1f7c1d /compile.c
parent6384f7981c1d7cebc5a30640145fc07cce673f8d (diff)
downloadruby-cb40432c74b9c5f785e8be53cbda981a64d47c72.tar.gz
Use `ERROR_ARGS_AT`
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 22c5d7ea3d..3849a66a07 100644
--- a/compile.c
+++ b/compile.c
@@ -8270,7 +8270,7 @@ compile_builtin_function_call(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NOD
NODE *args_node = node->nd_args;
if (parent_block != NULL) {
- COMPILE_ERROR(iseq, nd_line(line_node), "should not call builtins here.");
+ COMPILE_ERROR(ERROR_ARGS_AT(line_node) "should not call builtins here.");
return COMPILE_NG;
}
else {