mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
AK: Avoid else after return in files commonly included by the Kernel
This commit is contained in:
parent
07f4e91b94
commit
e982253c33
3 changed files with 28 additions and 38 deletions
|
@ -141,9 +141,8 @@ constexpr bool is_constant_evaluated()
|
|||
constexpr type abs(type num) \
|
||||
{ \
|
||||
if (is_constant_evaluated()) \
|
||||
return num < zero ? -num : num; \
|
||||
else \
|
||||
return __builtin_##intrinsic(num); \
|
||||
return num < (zero) ? -num : num; \
|
||||
return __builtin_##intrinsic(num); \
|
||||
}
|
||||
|
||||
__DEFINE_GENERIC_ABS(int, 0, abs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue