mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
additional tweaks to address some compiler warnings
This commit is contained in:
parent
693fc14eb2
commit
57fdef573c
6 changed files with 14 additions and 11 deletions
|
@ -225,7 +225,7 @@ string ZInst::VName(int n, int inst_num, const FrameReMap* mappings) const
|
|||
return "<special>";
|
||||
|
||||
// Find which identifier manifests at this instruction.
|
||||
ASSERT(slot >= 0 && slot < mappings->size());
|
||||
ASSERT(slot >= 0 && static_cast<bro_uint_t>(slot) < mappings->size());
|
||||
|
||||
auto& map = (*mappings)[slot];
|
||||
|
||||
|
@ -327,7 +327,8 @@ string ZInstI::VName(int n, const FrameMap* frame_ids,
|
|||
|
||||
if ( remappings && live )
|
||||
{ // Find which identifier manifests at this instruction.
|
||||
ASSERT(slot >= 0 && slot < remappings->size());
|
||||
ASSERT(slot >= 0 &&
|
||||
static_cast<bro_uint_t>(slot) < remappings->size());
|
||||
|
||||
auto& map = (*remappings)[slot];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue