mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Use else if constexpr
in explode_byte()
This commit is contained in:
parent
42d5883d57
commit
994fe0b89f
Notes:
sideshowbarker
2024-07-17 08:25:15 +09:00
Author: https://github.com/h3xOo Commit: https://github.com/SerenityOS/serenity/commit/994fe0b89f Pull-request: https://github.com/SerenityOS/serenity/pull/23667 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ static constexpr FlatPtr explode_byte(u8 b)
|
|||
FlatPtr value = b;
|
||||
if constexpr (sizeof(FlatPtr) == 4)
|
||||
return value << 24 | value << 16 | value << 8 | value;
|
||||
else if (sizeof(FlatPtr) == 8)
|
||||
else if constexpr (sizeof(FlatPtr) == 8)
|
||||
return value << 56 | value << 48 | value << 40 | value << 32 | value << 24 | value << 16 | value << 8 | value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue