Merge branch 'koscrob-fix-extractBit' into dev

This commit is contained in:
MITSUNARI Shigeo 2024-02-11 10:10:51 +09:00
commit 88b0ca1271

View file

@ -177,7 +177,7 @@ private:
}
uint32_t extractBit(uint32_t val, uint32_t base, uint32_t end)
{
return (val >> base) & ((1u << (end - base)) - 1);
return (val >> base) & ((1u << (end + 1 - base)) - 1);
}
void setNumCores()
{