Fix return type check for variadic functions

pull/602/head
Hennadii Chernyshchyk 2021-08-28 17:47:47 +03:00 committed by Bastiaan Olij
parent 6daaeb6dba
commit b7f03837a2
1 changed files with 1 additions and 1 deletions

View File

@ -1464,7 +1464,7 @@ def make_varargs_template(function_data, static=False):
call_line = "\t\t"
if "return_value" in function_data and function_data["return_value"]["type"] != "void":
if return_type != "void":
call_line += "return "
call_line += f'{escape_identifier(function_data["name"])}_internal(call_args.data(), variant_args.size());'