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/+/3885886 Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Manos Koukoutos <manoskouk@chromium.org> Cr-Commit-Position: refs/heads/main@{#83103}
This commit is contained in:
parent
6f9e71fa74
commit
ee95a9064a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user