mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge remote-tracking branch 'origin/topic/bbannier/fix-signed-unsigned-comparison'
This commit is contained in:
commit
e121654ee7
3 changed files with 10 additions and 2 deletions
8
CHANGES
8
CHANGES
|
@ -1,3 +1,11 @@
|
|||
6.1.0-dev.553 | 2023-10-12 17:11:18 +0200
|
||||
|
||||
* Fix signed-unsigned comparison. (Benjamin Bannier, Corelight)
|
||||
|
||||
We compared the return value of `sizeof` which returns a `std::size_t`
|
||||
with an `int` which GCC warned about. This patch changes the `int` to a
|
||||
`size_t`.
|
||||
|
||||
6.1.0-dev.551 | 2023-10-12 15:53:45 +0200
|
||||
|
||||
* quic: Avoid bytes for VariableLengthInteger (Arne Welzel, Corelight)
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
6.1.0-dev.551
|
||||
6.1.0-dev.553
|
||||
|
|
|
@ -851,7 +851,7 @@ inline ValPtr to_val(const hilti::rt::Bitfield<Ts...>& v, TypePtr target) {
|
|||
throw TypeMismatch("bitfield", target);
|
||||
|
||||
auto rval = make_intrusive<RecordVal>(rtype);
|
||||
int idx = 0;
|
||||
size_t idx = 0;
|
||||
hilti::rt::tuple_for_each(v.value, [&](const auto& x) {
|
||||
if ( idx < sizeof...(Ts) - 1 ) // last element is original integer value, with no record equivalent
|
||||
set_record_field(rval.get(), rtype, idx++, x);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue