fix truncation of token flags (#4727)

This commit is contained in:
Robert Reif 2023-01-26 16:11:37 -05:00 committed by GitHub
parent 3a8d9b8c87
commit c3aa0940be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -442,10 +442,10 @@ public:
}
bool isUnaryPreOp() const;
unsigned int flags() const {
uint64_t flags() const {
return mFlags;
}
void flags(const unsigned int flags_) {
void flags(const uint64_t flags_) {
mFlags = flags_;
}
bool isUnsigned() const {

View File

@ -1922,7 +1922,7 @@ private:
" B * b = new B;\n"
" b->f = new A::F * [ 10 ];\n"
"}");
ASSERT_EQUALS_WITHOUT_LINENUMBERS("[test.cpp:12]: (debug) valueflow.cpp:1319:valueFlowConditionExpressions bailout: Skipping function due to incomplete variable idx\n", errout.str());
ASSERT_EQUALS("", errout.str());
}
void simplifyTypedef83() { // ticket #2620