mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
Deprecate the internal int/uint types in favor of the cstdint types they were based on
This commit is contained in:
parent
18e4976c6c
commit
54752ef9a1
218 changed files with 1331 additions and 1323 deletions
|
@ -49,7 +49,7 @@ Hasher::Hasher(size_t arg_k, seed_t arg_seed)
|
|||
broker::expected<broker::data> Hasher::Serialize() const
|
||||
{
|
||||
return {broker::vector{
|
||||
static_cast<uint64>(Type()), static_cast<uint64>(k),
|
||||
static_cast<uint64_t>(Type()), static_cast<uint64_t>(k),
|
||||
seed.h1, seed.h2 }};
|
||||
}
|
||||
|
||||
|
@ -60,10 +60,10 @@ std::unique_ptr<Hasher> Hasher::Unserialize(const broker::data& data)
|
|||
if ( ! (v && v->size() == 4) )
|
||||
return nullptr;
|
||||
|
||||
auto type = caf::get_if<uint64>(&(*v)[0]);
|
||||
auto k = caf::get_if<uint64>(&(*v)[1]);
|
||||
auto h1 = caf::get_if<uint64>(&(*v)[2]);
|
||||
auto h2 = caf::get_if<uint64>(&(*v)[3]);
|
||||
auto type = caf::get_if<uint64_t>(&(*v)[0]);
|
||||
auto k = caf::get_if<uint64_t>(&(*v)[1]);
|
||||
auto h1 = caf::get_if<uint64_t>(&(*v)[2]);
|
||||
auto h2 = caf::get_if<uint64_t>(&(*v)[3]);
|
||||
|
||||
if ( ! (type && k && h1 && h2) )
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue