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:
Mark Overholser 2025-02-23 16:23:31 -06:00
parent 8fce9c34f8
commit eeaeaaeb16

View file

@ -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' )
{