Skip to content

Commit

Permalink
Fixed wrong validated name in builtinHypot
Browse files Browse the repository at this point in the history
  • Loading branch information
rben01 committed Dec 7, 2024
1 parent 05859b9 commit 53a359c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ class Interpreter {

const AST *builtinHypot(const LocationRange &loc, const std::vector<Value> &args)
{
validateBuiltinArgs(loc, "atan2", args, {Value::NUMBER, Value::NUMBER});
validateBuiltinArgs(loc, "hypot", args, {Value::NUMBER, Value::NUMBER});
scratch = makeNumberCheck(loc, std::hypot(args[0].v.d, args[1].v.d));
return nullptr;
}
Expand Down

0 comments on commit 53a359c

Please sign in to comment.