compiler/math.bits: use max u64 consts

This commit is contained in:
joe-conigliaro 2020-02-09 19:25:27 +11:00 committed by GitHub
parent 1eeee40278
commit 7583c350b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 94 additions and 87 deletions

View file

@ -10,7 +10,7 @@ import(
)
pub fn int_u64(max u64) ?u64 {
bitlen := bits.len64(max)
bitlen := bits.len_64(max)
if bitlen == 0 {
return u64(0)
}