mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibJS: Be a bit more explicit about sizeof(buf) / sizeof(FlatPtr)
This (seemingly) no-op cast communicates our intention to clang
This commit is contained in:
parent
e333b60064
commit
0901b17126
Notes:
sideshowbarker
2024-07-19 06:52:49 +09:00
Author: https://github.com/alimpfard
Commit: 0901b17126
Pull-request: https://github.com/SerenityOS/serenity/pull/2161
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ void Heap::gather_conservative_roots(HashTable<Cell*>& roots)
|
|||
|
||||
const FlatPtr* raw_jmp_buf = reinterpret_cast<const FlatPtr*>(buf);
|
||||
|
||||
for (size_t i = 0; i < sizeof(buf) / sizeof(FlatPtr); i += sizeof(FlatPtr))
|
||||
for (size_t i = 0; i < ((size_t)sizeof(buf)) / sizeof(FlatPtr); i += sizeof(FlatPtr))
|
||||
possible_pointers.set(raw_jmp_buf[i]);
|
||||
|
||||
FlatPtr stack_base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue