Skip to content

Commit 48d88f2

Browse files
authored
Merge pull request ceph#62672 from adamemerson/wip-test-common-signed-comparison
test/common: Fix signed comparison Reviewed-by: Kefu Chai <[email protected]>
2 parents 0157ccd + ee94491 commit 48d88f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/common/test_hobject.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ TEST(HObject, fmt_random)
285285

286286
auto name_length = (i * 17) % 51;
287287
std::string name;
288-
for (int j = 0; j < name_length; j++) {
288+
for (int j = 0; std::cmp_less(j, name_length); j++) {
289289
name.push_back((i * name_length + j) % 256);
290290
}
291291

0 commit comments

Comments
 (0)