Skip to content

Commit c5cdb06

Browse files
Leander SchultenLeander Schulten
authored andcommitted
Fix c++17 build
1 parent 35a30bb commit c5cdb06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cppcheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ std::size_t CppCheck::calculateHash(const Preprocessor& preprocessor, const std:
874874
unsigned int CppCheck::checkBuffer(const FileWithDetails &file, const std::string &cfgname, int fileIndex, const uint8_t* data, std::size_t size)
875875
{
876876
const auto f = [&file, data, size](std::vector<std::string>& files, simplecpp::OutputList* outputList) {
877-
return simplecpp::TokenList{data, size, files, file.spath(), outputList};
877+
return simplecpp::TokenList{static_cast<const unsigned char*>(data), size, files, file.spath(), outputList};
878878
};
879879
return checkInternal(file, cfgname, fileIndex, f);
880880
}

0 commit comments

Comments
 (0)