Commit 9b2b9b80 authored by Jakob Kummerow's avatar Jakob Kummerow Committed by V8 LUCI CQ

[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: 's avatarMilad 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}
parent aac1c2b5
......@@ -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_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment