mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
LibCoreDump: Make narrowing uint64_t
=> FlatPtr
conversion explicit
This fixes a build issue on Clang which returns an error if narrowing is performed in a list-initialization.
This commit is contained in:
parent
5f2f460cc8
commit
9265f24816
Notes:
sideshowbarker
2024-07-18 07:16:52 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/9265f248169 Pull-request: https://github.com/SerenityOS/serenity/pull/8718 Issue: https://github.com/SerenityOS/serenity/issues/363 Reviewed-by: https://github.com/gunnarbeutner ✅ Reviewed-by: https://github.com/nico
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ const Reader::LibraryData* Reader::library_containing(FlatPtr address) const
|
|||
if (file_or_error.is_error())
|
||||
return {};
|
||||
auto image = ELF::Image(file_or_error.value()->bytes());
|
||||
cached_libs.set(path, make<LibraryData>(name, region->region_start, file_or_error.release_value(), move(image)));
|
||||
cached_libs.set(path, make<LibraryData>(name, (FlatPtr)region->region_start, file_or_error.release_value(), move(image)));
|
||||
}
|
||||
|
||||
auto lib_data = cached_libs.get(path).value();
|
||||
|
|
Loading…
Reference in a new issue