1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-04 08:37:28 +03:00

Fix -Wnarrowing on i386

FIxes https://github.com/rui314/mold/issues/763
This commit is contained in:
Rui Ueyama 2022-10-06 09:36:55 +08:00
parent c7f181c30b
commit 9e4e81b061

View File

@ -67,7 +67,7 @@ void InputSection<E>::uncompress(Context<E> &ctx) {
u8 *buf = new u8[sh_size];
uncompress_to(ctx, buf);
contents = {(char *)buf, sh_size};
contents = std::string_view((char *)buf, sh_size);
ctx.string_pool.emplace_back(buf);
uncompressed = true;
}