Skip to content

Commit 0b3382f

Browse files
committed
Refactoring: Fixing warnings like: Use the "nullptr" literal (2)
Correcting error when compiling with clang
1 parent 2447842 commit 0b3382f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clangparser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void ClangTUParser::parse()
121121
//printf("ClangParser::start(%s)\n",fileName);
122122
assert(p->index==nullptr);
123123
assert(p->tokens==nullptr);
124-
assert(p->numTokens==nullptr);
124+
assert(p->numTokens==0);
125125
p->index = clang_createIndex(0, 0);
126126
p->curToken = 0;
127127
p->cursors.clear();

0 commit comments

Comments
 (0)