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:
Lynix 2016-06-11 13:13:53 +02:00
parent c7368ada97
commit d2790f0992
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}