mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
fix
This commit is contained in:
parent
32aaf30d1e
commit
dd9fea6115
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ pub fn (mut g Gen) generate_builtins() {
|
|||
}
|
||||
|
||||
pub fn (mut g Gen) get_builtin_arg_reg(name Builtin, index i32) Register {
|
||||
builtin := g.builtins[name] or { panic('undefined builtin function ${name} : ${g.builtins}') }
|
||||
builtin := g.builtins[name] or { panic('undefined builtin function ${name}') }
|
||||
if index >= builtin.arg_regs.len {
|
||||
g.n_error('builtin ${name} does only have ${builtin.arg_regs.len} arguments, requested ${index}')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue