Skip to content

Commit

Permalink
src: fix compiler warning in src/heap_utils.cc
Browse files Browse the repository at this point in the history
Fixes: #43577
Signed-off-by: Darshan Sen <raisinten@gmail.com>

PR-URL: #43579
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
RaisinTen authored and targos committed Jul 12, 2022
1 parent 66fb059 commit 0b432b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/heap_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>(num_bytes_written), buf.len);
offset += num_bytes_written;
}
DCHECK_EQ(offset, size);
Expand Down

0 comments on commit 0b432b9

Please sign in to comment.