[gcc] Fix build with GCC
Change-Id: I172f684515e363fc29e299c70fa3d6eac2789818 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3735127 Auto-Submit: Jakob Kummerow <jkummerow@chromium.org> Reviewed-by: Milad Farazmand <mfarazma@redhat.com> Commit-Queue: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Milad Farazmand <mfarazma@redhat.com> Cr-Commit-Position: refs/heads/main@{#81450}
This commit is contained in:
parent
aac1c2b533
commit
9b2b9b80c2
@ -600,7 +600,8 @@ int ToStringResultLength(Digits X, int radix, bool sign) {
|
||||
uint64_t chars_required = bit_length;
|
||||
chars_required *= kBitsPerCharTableMultiplier;
|
||||
chars_required = DIV_CEIL(chars_required, min_bits_per_char);
|
||||
DCHECK(chars_required < std::numeric_limits<int>::max());
|
||||
DCHECK(chars_required <
|
||||
static_cast<uint64_t>(std::numeric_limits<int>::max()));
|
||||
result = static_cast<int>(chars_required);
|
||||
}
|
||||
result += sign;
|
||||
|
@ -86,7 +86,7 @@ class NamesProvider {
|
||||
bool has_computed_import_names_{false};
|
||||
const WasmModule* module_;
|
||||
base::Vector<const uint8_t> wire_bytes_;
|
||||
std::unique_ptr<DecodedNameSection> name_section_names_{};
|
||||
std::unique_ptr<DecodedNameSection> name_section_names_;
|
||||
std::map<uint32_t, std::string> import_export_function_names_;
|
||||
std::map<uint32_t, std::string> import_export_table_names_;
|
||||
std::map<uint32_t, std::string> import_export_memory_names_;
|
||||
|
Loading…
Reference in New Issue
Block a user