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

all: fix immutable fn args

This commit is contained in:
Alexander Medvednikov
2019-08-06 18:13:04 +02:00
parent 76def48f01
commit 52f473d1c7
5 changed files with 24 additions and 21 deletions

View File

@@ -102,7 +102,8 @@ pub fn exp(a f64) f64 {
}
// digits returns an array of the digits of n in the given base.
pub fn digits(n, base int) []int {
pub fn digits(_n, base int) []int {
mut n := _n
mut sign := 1
if n < 0 {
sign = -1
@@ -132,6 +133,7 @@ pub fn exp2(a f64) f64 {
}
// factorial calculates the factorial of the provided value.
// TODO bring back once multiple value functions are implemented
fn recursive_product( n int, current_number_ptr &int) int{
mut m := n / 2
if (m == 0){