From b3fecef45dbc4d04aa53658347f06de5449aefef Mon Sep 17 00:00:00 2001 From: Jan Wassenberg Date: Mon, 26 Feb 2024 22:31:03 -0800 Subject: [PATCH] Warning fix: sign cast PiperOrigin-RevId: 610635789 --- compression/stats.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compression/stats.cc b/compression/stats.cc index 2013422..8e66119 100644 --- a/compression/stats.cc +++ b/compression/stats.cc @@ -114,7 +114,7 @@ std::string Stats::ToString(int exclude) const { pos += ret; } - HWY_ASSERT(pos < sizeof(buf)); + HWY_ASSERT(pos < static_cast(sizeof(buf))); return buf; }