Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jul 20, 2024
1 parent 8b2c7e6 commit cf7bd36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vlib/v/checker/checker.v
Original file line number Diff line number Diff line change
Expand Up @@ -3874,7 +3874,7 @@ fn (mut c Checker) ident(mut node ast.Ident) ast.Type {
return c.resolve_var_fn(func, mut node, name)
} else if node.name in checker.builtin_v_fns {
if func := c.table.find_fn(node.name) {
return c.resolve_var_fn(func, mut node, '_v_${node.name}')
return c.resolve_var_fn(func, mut node, node.name)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion vlib/v/gen/c/cgen.v
Original file line number Diff line number Diff line change
Expand Up @@ -4756,7 +4756,7 @@ fn (mut g Gen) ident(node ast.Ident) {
g.write(util.no_dots(node.name[2..]))
return
}
mut name := c_name(node.name)
mut name := if node.kind == .function { c_fn_name(node.name) } else { c_name(node.name) }
if node.kind == .constant {
if g.pref.translated && !g.is_builtin_mod
&& !util.module_is_builtin(node.name.all_before_last('.')) {
Expand Down

0 comments on commit cf7bd36

Please sign in to comment.