build: correct CHECK syntax (#48106)

This commit is contained in:
Keeley Hammond
2025-08-18 17:41:48 -07:00
committed by GitHub
parent 5be0be7f04
commit f0c4907994

View File

@@ -213,7 +213,7 @@ void RegisterPathProvider() {
void ValidateV8Snapshot(v8::StartupData* data) {
if (data->data &&
electron::fuses::IsEmbeddedAsarIntegrityValidationEnabled()) {
CHECK(data->raw_size, 0);
CHECK_GT(data->raw_size, 0);
UNSAFE_BUFFERS({
base::span<const char> span_data(
data->data, static_cast<unsigned long>(data->raw_size));