mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
Fix clang-tidy bugprone-implicit-widening-of-multiplication-result warnings in headers
This commit is contained in:
parent
3b7122aadb
commit
d327d6388c
3 changed files with 3 additions and 3 deletions
|
@ -425,7 +425,7 @@ constexpr size_t pad_size(size_t size) {
|
|||
if ( size == 0 )
|
||||
return 0; // glibc allocated 16 bytes anyway.
|
||||
|
||||
const int pad = 8;
|
||||
const size_t pad = 8;
|
||||
if ( size < 12 )
|
||||
return 2 * pad;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue