Skip to content

Commit ba22737

Browse files
committed
Fix comma being dropped from macro varargs argument
This prevented QT6_DECL_NEW_OVERLOAD_TAIL from being expanded correctly
1 parent ecf1e43 commit ba22737

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

generator/parser/rpp/pp-macro-expander.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ class pp_macro_expander
404404
{
405405
InputIterator arg_end = skip_argument (_first, _last);
406406

407-
while (_macro->is.variadics && _first != arg_end && arg_end != _last && *arg_end == ','
408-
&& (_actuals.size () + 1) == _macro->formals.size ())
407+
while (_macro->is.variadics && arg_end != _last && *arg_end == ','
408+
&& _actuals.size () == _macro->formals.size ())
409409
{
410410
arg_end = skip_argument (++arg_end, _last);
411411
}

0 commit comments

Comments
 (0)