| Index: src/wasm/wasm-module.h
|
| diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h
|
| index bf4aa0abc011dd9a76a7ef31506f2b65ca57f430..17fb0305163af3df312512045ec9156ec5513875 100644
|
| --- a/src/wasm/wasm-module.h
|
| +++ b/src/wasm/wasm-module.h
|
| @@ -277,7 +277,7 @@ struct V8_EXPORT_PRIVATE ModuleWireBytes {
|
| WasmName GetName(uint32_t offset, uint32_t length) const {
|
| if (length == 0) return {"<?>", 3}; // no name.
|
| CHECK(BoundsCheck(offset, length));
|
| - DCHECK_GE(static_cast<int>(length), 0);
|
| + DCHECK_GE(length, 0);
|
| return Vector<const char>::cast(
|
| module_bytes.SubVector(offset, offset + length));
|
| }
|
| @@ -291,7 +291,7 @@ struct V8_EXPORT_PRIVATE ModuleWireBytes {
|
| WasmName GetNameOrNull(uint32_t offset, uint32_t length) const {
|
| if (offset == 0 && length == 0) return {NULL, 0}; // no name.
|
| CHECK(BoundsCheck(offset, length));
|
| - DCHECK_GE(static_cast<int>(length), 0);
|
| + DCHECK_GE(length, 0);
|
| return Vector<const char>::cast(
|
| module_bytes.SubVector(offset, offset + length));
|
| }
|
|
|