Skip to content

Commit

Permalink
Fix inverted logic. This could lead to diagnostics with type === 'none
Browse files Browse the repository at this point in the history
which seems to happen sometimes.
  • Loading branch information
Andersbakken committed Apr 12, 2018
1 parent a595d13 commit 2e63387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.6)
project(rtags)
set(RTAGS_VERSION_MAJOR 2)
set(RTAGS_VERSION_MINOR 18)
set(RTAGS_VERSION_DATABASE 123)
set(RTAGS_VERSION_DATABASE 124)
set(RTAGS_VERSION_SOURCES_FILE 14)
set(RTAGS_VERSION ${RTAGS_VERSION_MAJOR}.${RTAGS_VERSION_MINOR}.${RTAGS_VERSION_DATABASE})

Expand Down
2 changes: 1 addition & 1 deletion src/RTags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ void DiagnosticsProvider::diagnose()
}
if (ok) {
Diagnostic &diag = target[it->first];
if (diag.type() != Diagnostic::None)
if (diag.type() == Diagnostic::None)
diag = std::move(it->second);
}
}
Expand Down

0 comments on commit 2e63387

Please sign in to comment.