Minor fixes

This commit is contained in:
Jérôme Leclercq
2022-02-21 20:46:37 +01:00
parent ad544a595d
commit a1b6f51398
8 changed files with 16 additions and 15 deletions

View File

@@ -654,7 +654,7 @@ namespace Nz
// Activation of the bit without branching
// https://graphics.stanford.edu/~seander/bithacks.html#ConditionalSetOrClearBitsWithoutBranching
block = (block & ~mask) | (-val & mask);
block = (block & ~mask) | (-static_cast<Block>(val) & mask);
}
/*!