mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Better use of operators priorities
This commit is contained in:
parent
c2ee15b09f
commit
b84fd05912
3 changed files with 3 additions and 3 deletions
|
@ -440,7 +440,7 @@ Connection* ConnCompressor::NextFromOrig(PendingConn* pending, double t,
|
||||||
|
|
||||||
else if ( tp->th_flags & TH_SYN )
|
else if ( tp->th_flags & TH_SYN )
|
||||||
{
|
{
|
||||||
if ( ! tp->th_flags & TH_ACK )
|
if ( ! (tp->th_flags & TH_ACK) )
|
||||||
{
|
{
|
||||||
Weird(pending, t, "SYN_after_partial");
|
Weird(pending, t, "SYN_after_partial");
|
||||||
pending->SYN = 1;
|
pending->SYN = 1;
|
||||||
|
|
|
@ -911,7 +911,7 @@ bool LogMgr::Write(EnumVal* id, RecordVal* columns)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! v->Type()->Tag() == TYPE_STRING )
|
if ( v->Type()->Tag() != TYPE_STRING )
|
||||||
{
|
{
|
||||||
reporter->Error("path_func did not return string");
|
reporter->Error("path_func did not return string");
|
||||||
Unref(v);
|
Unref(v);
|
||||||
|
|
|
@ -231,7 +231,7 @@ bool StateAccess::CheckOldSet(const char* op, ID* id, Val* index,
|
||||||
|
|
||||||
bool StateAccess::MergeTables(TableVal* dst, Val* src)
|
bool StateAccess::MergeTables(TableVal* dst, Val* src)
|
||||||
{
|
{
|
||||||
if ( ! src->Type()->Tag() == TYPE_TABLE )
|
if ( src->Type()->Tag() != TYPE_TABLE )
|
||||||
{
|
{
|
||||||
reporter->Error("type mismatch while merging tables");
|
reporter->Error("type mismatch while merging tables");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue