Math/Algorithm: Fix IntegralLog2Pot case with sizeof(T) > 4 and %32 bits
Former-commit-id: 08c6f806104a3956eb7d6eae82d7a872c8939d19 [formerly f1f7afc79b2f2670a3b1c81b291cc7d8e6a0f933] Former-commit-id: 5edb7cceefaaa87ac23e40563275165cd10bdfad
This commit is contained in:
parent
51533fabe9
commit
6f38f42e8d
|
|
@ -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