Skip to content

Commit

Permalink
crnlib: fix CodeQL report cpp/comparison-with-wider-type
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Jul 10, 2024
1 parent cff159a commit 31ead19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crnlib/crn_dxt_hc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,10 @@ void dxt_hc::determine_tiles_task(uint64 data, void*) {
}
}

for (uint8 c = m_has_color_blocks ? 0 : cAlpha0; c < cAlpha0 + m_num_alpha_blocks; c++) {
for (uint8 e = 0; e < 8; e++) {
for (uint c = m_has_color_blocks ? 0 : cAlpha0; c < cAlpha0 + m_num_alpha_blocks; c++) {
for (uint e = 0; e < 8; e++) {
total_error[c][e] = 0;
for (uint8 t = 0, s = e + 1; s; s >>= 1, t++)
for (uint t = 0, s = e + 1; s; s >>= 1, t++)
total_error[c][e] += tile_error[c][tiles[e][t]];
}
}
Expand Down

0 comments on commit 31ead19

Please sign in to comment.