Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3cb7a74

Browse files
committed
eliminate another unsigned size_t comparison in a unit test
1 parent 4be6319 commit 3cb7a74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow/display_list_unittests.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ static sk_sp<DisplayList> Build(size_t g_index, size_t v_index) {
719719
}
720720
sk_sp<DisplayList> dl = builder.Build();
721721
std::string name;
722-
if (g_index < 0) {
722+
if (g_index >= allGroups.size()) {
723723
name = "Default";
724724
} else {
725725
name = allGroups[g_index].op_name;

0 commit comments

Comments
 (0)