Math/Algorithm: Fix IntegralLog2Pot case with sizeof(T) > 4 and %32 bits
Former-commit-id: b0fe4ada8100dd2ecc0fe403fa111df0b672dc7a [formerly b51e0281a72a3b42e663de8953307fa8b6dbdede] Former-commit-id: 304402304696550c7ffb71b41015ef62c03f9a94
This commit is contained in:
parent
c7368ada97
commit
d2790f0992
|
|
@ -90,7 +90,7 @@ namespace Nz
|
|||
|
||||
// Appel de la fonction avec le nombre 32bits, si le résultat est non-nul nous avons la réponse
|
||||
unsigned int log2 = IntegralLog2Pot<UInt32>(val);
|
||||
if (log2)
|
||||
if (log2 || val == 1)
|
||||
return log2 + i*8;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue