Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 17:10:13 +01:00
*this is wrong intensifies*
Dieser Commit ist enthalten in:
Ursprung
8de7a4c828
Commit
9ab4319771
@ -26,6 +26,6 @@ public final class MathUtil {
|
|||||||
* @return ceiled log2 of the given number
|
* @return ceiled log2 of the given number
|
||||||
*/
|
*/
|
||||||
public static int ceilLog2(final int i) {
|
public static int ceilLog2(final int i) {
|
||||||
return i > 0 ? 31 - Integer.numberOfLeadingZeros(i) : 0;
|
return i > 0 ? 32 - Integer.numberOfLeadingZeros(i - 1) : 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren