mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
AK: Resolve clang-tidy readability-bool-conversion warnings
... In files included by Kernel/Process.cpp and Kernel/Thread.cpp
This commit is contained in:
parent
10d0cac73c
commit
22feb9d47b
12 changed files with 26 additions and 25 deletions
|
@ -91,7 +91,7 @@ public:
|
|||
|
||||
if (previous_data != nullptr) {
|
||||
__builtin_memcpy(m_data, previous_data, previous_size_bytes);
|
||||
if (previous_size % 8)
|
||||
if ((previous_size % 8) != 0)
|
||||
set_range(previous_size, 8 - previous_size % 8, default_value);
|
||||
kfree_sized(previous_data, previous_size_bytes);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue