Skip to content

Commit

Permalink
Apparently MSVC doesn't like shorts for vectorized loops
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Dec 17, 2024
1 parent 81312c4 commit cf440e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PalettedBlockArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ class PalettedBlockArray final : public IPalettedBlockArray<Block> {
private:
const size_t VECTORIZED_LOOKUP_CHUNK_SIZE = 32;

bool _vectorizedLookupOffset(Block val, short offset) const {
bool _vectorizedLookupOffset(Block val, int offset) const {
int result = 0;
for (auto i = 0; i < VECTORIZED_LOOKUP_CHUNK_SIZE; i++) {
for (int i = 0; i < VECTORIZED_LOOKUP_CHUNK_SIZE; i++) {
result |= palette[i + offset] == val;
}
return result != 0;
Expand Down

0 comments on commit cf440e5

Please sign in to comment.