Skip to content

Commit

Permalink
Cxx: fix wrong condition when enabling the nth: field
Browse files Browse the repository at this point in the history
The wrong condition was introduced in
b9249a8.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Feb 7, 2023
1 parent 0b11f1a commit b1da453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsers/cxx/cxx_tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ tagEntryInfo * cxxTagBegin(unsigned int uKind,CXXToken * pToken)
if (isFieldEnabled(FIELD_NTH) && g_oCXXTag.extensionFields.scopeIndex != CORK_NIL)
{
if (uKind == CXXTagKindMEMBER || uKind == CXXTagKindENUMERATOR
|| uKind == CXXTagKindPARAMETER || CXXTagCPPKindTEMPLATEPARAM)
|| uKind == CXXTagKindPARAMETER || uKind == CXXTagCPPKindTEMPLATEPARAM)
g_oCXXTag.extensionFields.nth =
(short) countEntriesInScope(g_oCXXTag.extensionFields.scopeIndex,
true,
Expand Down

0 comments on commit b1da453

Please sign in to comment.