Math/Algorithm: Fix IntegralLog2Pot case with sizeof(T) > 4 and %32 bits
Former-commit-id: c354e6edf2bd2c69926ff7c2503ec65862eb70ca [formerly 0363386806402faccdfe600341d5d9de5afc26f3] Former-commit-id: 294c14ea78a84558ecbbeeb3276117a411b3d9e5
This commit is contained in:
parent
c2d0ebd15e
commit
116699a313
|
|
@ -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