Skip to content

Commit

Permalink
Merge pull request #16 from cgytrus/fix-msvc-warnings
Browse files Browse the repository at this point in the history
Fix MSVC warnings
  • Loading branch information
wx257osn2 authored Jan 10, 2024
2 parents f9c9227 + 6fe8c5a commit c38fa83
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/qoixx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,8 +1060,8 @@ class qoi{
constexpr std::uint32_t mask_tail_4 = 0b0000'1111u;
const auto vr = (i >> 4);
const auto vb = (i & mask_tail_4);
table[i][0] = vr;
table[i][1] = vb;
table[i][0] = static_cast<uint8_t>(vr);
table[i][1] = static_cast<uint8_t>(vb);
}
return table;
}
Expand All @@ -1072,9 +1072,9 @@ class qoi{
const auto vr = ((i >> 4) & mask_tail_2) - 2;
const auto vg = ((i >> 2) & mask_tail_2) - 2;
const auto vb = ( i & mask_tail_2) - 2;
table[i][0] = vr;
table[i][1] = vg;
table[i][2] = vb;
table[i][0] = static_cast<uint8_t>(vr);
table[i][1] = static_cast<uint8_t>(vg);
table[i][2] = static_cast<uint8_t>(vb);
}
return table;
}
Expand Down

0 comments on commit c38fa83

Please sign in to comment.