| Index: src/wasm/wasm-module.h
|
| diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h
|
| index 7a4a170ae62df730d57589fc82c7ef368225f496..519fdea6785dc8cff0b84dfb38272089fd3a11aa 100644
|
| --- a/src/wasm/wasm-module.h
|
| +++ b/src/wasm/wasm-module.h
|
| @@ -230,7 +230,7 @@
|
| WasmName GetName(uint32_t offset, uint32_t length) const {
|
| if (length == 0) return {"<?>", 3}; // no name.
|
| CHECK(BoundsCheck(offset, offset + length));
|
| - DCHECK_GE(length, 0);
|
| + DCHECK_GE(static_cast<int>(length), 0);
|
| return {reinterpret_cast<const char*>(module_start + offset),
|
| static_cast<int>(length)};
|
| }
|
| @@ -244,7 +244,7 @@
|
| WasmName GetNameOrNull(uint32_t offset, uint32_t length) const {
|
| if (offset == 0 && length == 0) return {NULL, 0}; // no name.
|
| CHECK(BoundsCheck(offset, offset + length));
|
| - DCHECK_GE(length, 0);
|
| + DCHECK_GE(static_cast<int>(length), 0);
|
| return {reinterpret_cast<const char*>(module_start + offset),
|
| static_cast<int>(length)};
|
| }
|
|
|