mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
Reformat the world
This commit is contained in:
parent
194cb24547
commit
b2f171ec69
714 changed files with 35149 additions and 35203 deletions
|
@ -4,7 +4,8 @@
|
|||
|
||||
#include "zeek/Type.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
namespace zeek::detail
|
||||
{
|
||||
|
||||
inline bool double_to_count_would_overflow(double v)
|
||||
{
|
||||
|
@ -18,8 +19,7 @@ inline bool int_to_count_would_overflow(bro_int_t v)
|
|||
|
||||
inline bool double_to_int_would_overflow(double v)
|
||||
{
|
||||
return v < static_cast<double>(INT64_MIN) ||
|
||||
v > static_cast<double>(INT64_MAX);
|
||||
return v < static_cast<double>(INT64_MIN) || v > static_cast<double>(INT64_MAX);
|
||||
}
|
||||
|
||||
inline bool count_to_int_would_overflow(bro_uint_t v)
|
||||
|
@ -27,7 +27,6 @@ inline bool count_to_int_would_overflow(bro_uint_t v)
|
|||
return v > INT64_MAX;
|
||||
}
|
||||
|
||||
extern bool would_overflow(const zeek::Type* from_type,
|
||||
const zeek::Type* to_type, const Val* val);
|
||||
extern bool would_overflow(const zeek::Type* from_type, const zeek::Type* to_type, const Val* val);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue