Commit ee95a906 authored by Manos Koukoutos's avatar Manos Koukoutos Committed by V8 LUCI CQ

Fix comparison between different signs

Currently, compilation may fail in some configurations.

Change-Id: I2fd6a71c4f43c66416429a9d3dbbf9970c68aeaf
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3885886Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83103}
parent 6f9e71fa
......@@ -120,7 +120,8 @@ class WebSnapshotSerializerDeserializer {
static_cast<uint32_t>(FixedArray::kMaxLength - 1);
// This ensures indices and lengths can be converted between uint32_t and int
// without problems:
static_assert(kMaxItemCount < std::numeric_limits<int32_t>::max());
static_assert(kMaxItemCount <
static_cast<uint32_t>(std::numeric_limits<int32_t>::max()));
protected:
explicit WebSnapshotSerializerDeserializer(Isolate* isolate)
......
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