mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Fix UID compiler warning/error & missed baselines.
This commit is contained in:
parent
d31b59a5d0
commit
50dbbab52c
5 changed files with 86 additions and 84 deletions
|
@ -10,9 +10,9 @@ void UID::Set(bro_uint_t bits, const std::vector<uint64>& v)
|
|||
uid.clear();
|
||||
|
||||
div_t res = div(bits, 64);
|
||||
int size = res.rem ? res.quot + 1 : res.quot;
|
||||
size_t size = res.rem ? res.quot + 1 : res.quot;
|
||||
|
||||
for ( int i = 0; i < size; ++i )
|
||||
for ( size_t i = 0; i < size; ++i )
|
||||
uid.push_back(i < v.size() ? v[i] : calculate_unique_id());
|
||||
|
||||
if ( res.rem )
|
||||
|
|
|
@ -80,6 +80,8 @@ private:
|
|||
std::vector<uint64> uid;
|
||||
};
|
||||
|
||||
bool operator==(const UID& u1, const UID& u2);
|
||||
|
||||
} // namespace Bro
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue