Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class basic_string
- {
- ...
- size_type find(const _Elem *_Ptr, size_type _Off = 0) const
- ...
- }
- void
- PipelineAnalysis::prepareFields(void) {
- ...
- if (peptideProphetOpts_.find(" PI ", 0)>=0) {
- fields_.push_back(Field("PpI_zscore"));
- }
- ...
- }
- This is what should have been written here: (peptideProphetOpts_.find(" PI ", 0) != string::npos).
- This suspicious code was found in TPP project by PVS-Studio static code analyzer.
- Warning message is:
- V547 Expression 'peptideProphetOpts_.find(" PI ", 0) >= 0' is always true. Unsigned type value is always >= 0. pepXMLViewer pipelineanalysis.cxx 1590
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement