mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18: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
|
@ -9,7 +9,7 @@ Tag::Tag(EnumType* etype, type_t arg_type, subtype_t arg_subtype)
|
|||
|
||||
type = arg_type;
|
||||
subtype = arg_subtype;
|
||||
int64_t i = (int64)(type) | ((int64)subtype << 31);
|
||||
int64_t i = (int64_t)(type) | ((int64_t)subtype << 31);
|
||||
Ref(etype);
|
||||
val = etype->GetVal(i);
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ Tag::Tag(EnumVal* arg_val)
|
|||
val = arg_val;
|
||||
Ref(val);
|
||||
|
||||
int64 i = val->InternalInt();
|
||||
int64_t i = val->InternalInt();
|
||||
type = i & 0xffffffff;
|
||||
subtype = (i >> 31) & 0xffffffff;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue