We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ca8953 commit 12de1e3Copy full SHA for 12de1e3
1 file changed
gc/default/default.c
@@ -1153,7 +1153,7 @@ print_lock_stats(void)
1153
1154
lock_stats_t *all_stats[] = {&sweep_lock_stats, &swept_pages_lock_stats};
1155
1156
- for (int i = 0; i < 3; i++) {
+ for (size_t i = 0; i < sizeof(all_stats) / sizeof(all_stats[0]); i++) {
1157
lock_stats_t *stats = all_stats[i];
1158
1159
/* Sort callsites by total contentions (descending) */
0 commit comments