!45640 fix AbstractSequence::operator==

Merge pull request !45640 from wangrao124/fix_mac_sparse
This commit is contained in:
i-robot 2022-11-18 03:45:55 +00:00 committed by Gitee
commit 6cad1ff9e7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 0 deletions

View File

@ -837,6 +837,9 @@ bool AbstractSequence::operator==(const AbstractSequence &other) const {
if (this == &other) {
return true;
}
if (tid() != other.tid()) {
return false;
}
if (dynamic_len_ != other.dynamic_len()) {
// Variable length sequence and constant length sequence can not be the same.
return false;