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 <[email protected]>

PR-URL: #43579
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
  • 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.