Skip to content

Commit ee94491

Browse files
committed
test/common: Fix signed comparison
Signed-off-by: Adam Emerson <[email protected]>
1 parent cdf81fa commit ee94491

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)