Use ERROR_ARGS_AT

This commit is contained in:
Nobuyoshi Nakada 2023-02-21 18:40:03 +09:00
parent 6384f7981c
commit cb40432c74
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -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 {