1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fix linux warnings in generated C code

This commit is contained in:
Nicolas Sauzede
2020-03-01 13:26:09 +01:00
committed by GitHub
parent 7a499b3cd3
commit becd87141c
5 changed files with 17 additions and 20 deletions

View File

@@ -132,7 +132,7 @@ fn multiple_of_power_of_five_32(v u32, p u32) bool {
// multiple_of_power_of_two_32 reports whether v is divisible by 2^p.
fn multiple_of_power_of_two_32(v u32, p u32) bool {
return bits.trailing_zeros_32(v) >= p
return u32(bits.trailing_zeros_32(v)) >= p
}
// log10_pow2 returns floor(log_10(2^e)).