mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
v: forbid function parameter names, shadowing imported module names (#17210)
This commit is contained in:
parent
c16549b6fd
commit
404a9aa442
45 changed files with 381 additions and 230 deletions
|
@ -29,9 +29,9 @@ const (
|
|||
u64_iter_count = calculate_iterations_for(64)
|
||||
)
|
||||
|
||||
fn calculate_iterations_for(bits int) int {
|
||||
base := bits / sys.rand_bitsize
|
||||
extra := if bits % sys.rand_bitsize == 0 { 0 } else { 1 }
|
||||
fn calculate_iterations_for(bits_ int) int {
|
||||
base := bits_ / sys.rand_bitsize
|
||||
extra := if bits_ % sys.rand_bitsize == 0 { 0 } else { 1 }
|
||||
return base + extra
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue