From 6c57c083e6ad20b7bfa9c0a50f5ab1fdc01e0e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Bostr=C3=B6m?= Date: Tue, 22 Oct 2024 16:55:55 +1100 Subject: [PATCH] Fix -Wsign-compare in CrashReportDatabaseTest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: crashpad:42310127 Change-Id: I8a060afd6d976379064c4177a40b337942252087 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/5951643 Reviewed-by: Mark Mentovai Commit-Queue: Peter Boström --- client/crash_report_database_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/crash_report_database_test.cc b/client/crash_report_database_test.cc index eecd8f0c..78889a10 100644 --- a/client/crash_report_database_test.cc +++ b/client/crash_report_database_test.cc @@ -1005,7 +1005,7 @@ TEST_F(CrashReportDatabaseTest, InitializeFromLargerFileRetainsClientId) { FileWriter settings_writer; ASSERT_TRUE(settings_writer.Open( settings_path, FileWriteMode::kReuseOrFail, FilePermissions::kOwnerOnly)); - ASSERT_NE(settings_writer.Seek(0, SEEK_END), 0u); + ASSERT_NE(settings_writer.Seek(0, SEEK_END), 0); constexpr uint64_t extra_garbage = 0xBADF00D; ASSERT_TRUE(settings_writer.Write(&extra_garbage, sizeof(extra_garbage))); settings_writer.Close();