From 4461c72e48a73a3b505114ede83db0ec3b955b74 Mon Sep 17 00:00:00 2001 From: Darshan Sen Date: Sun, 26 Jun 2022 17:55:59 +0530 Subject: [PATCH] src: fix compiler warning in src/heap_utils.cc Fixes: https://github.com/nodejs/node/issues/43577 Signed-off-by: Darshan Sen --- src/heap_utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heap_utils.cc b/src/heap_utils.cc index 0a68077d5d9b24..467e7ee5f82692 100644 --- a/src/heap_utils.cc +++ b/src/heap_utils.cc @@ -245,7 +245,7 @@ class FileOutputStream : public v8::OutputStream { status_ = num_bytes_written; return kAbort; } - DCHECK_LE(num_bytes_written, buf.len); + DCHECK_LE(static_cast(num_bytes_written), buf.len); offset += num_bytes_written; } DCHECK_EQ(offset, size);