mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
fix to_count in zeek.bif to resolve conflict from bbanier's adjustment to static casting of the return from strtoull
This commit is contained in:
parent
8fce9c34f8
commit
eeaeaaeb16
1 changed files with 1 additions and 1 deletions
|
@ -2680,7 +2680,7 @@ function to_count%(str: string, base: count &default=10%): count
|
|||
const char* s = str->CheckString();
|
||||
char* end_s;
|
||||
|
||||
uint64_t u = (uint64_t) strtoull(s, &end_s, base);
|
||||
uint64_t u = static_cast<uint64_t> strtoull(s, &end_s, base);
|
||||
|
||||
if ( s[0] == '\0' || end_s[0] != '\0' )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue