From 55f32fc4138ffea59be37f33f9335824817aeb59 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 6 Dec 2019 19:23:24 +0300 Subject: [PATCH] more mutability fixes --- examples/game_of_life/modules/automaton/automaton.v | 4 ++-- vlib/compiler/if_match.v | 1 + vlib/sync/waitgroup.v | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/game_of_life/modules/automaton/automaton.v b/examples/game_of_life/modules/automaton/automaton.v index ab94405ab8..8bb1d015a9 100644 --- a/examples/game_of_life/modules/automaton/automaton.v +++ b/examples/game_of_life/modules/automaton/automaton.v @@ -39,7 +39,7 @@ pub mut: } fn new_automaton(f [][]int) Automaton { - mut maxy := f.len + maxy := f.len mut maxx := 0 for y := 0; y 0 { // Do not remove this, busy empty loops are optimized // with -prod by some compilers, see issue #2874