We dont want operator precedence to cet is in trouble
This commit is contained in:
parent
26384c15d3
commit
f47837a9bd
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ for (my $gen = 0; $gen < $gens; $gen++) {
|
|||
my @next;
|
||||
for (my $elem = 0; $elem < $width ; $elem++) {
|
||||
# Boundary conditions handled by modulo so we wrap around
|
||||
my $state = $initial[$elem - 1 % $width] . $initial[$elem] . $initial[$elem +1 % $width];
|
||||
my $state = $initial[ ($elem - 1) % $width] . $initial[$elem] . $initial[ ($elem +1) % $width];
|
||||
|
||||
# Get the corresponding value for this state
|
||||
$next[$elem] = get_val_at_pos oct("0b".$state);
|
||||
|
|
Loading…
Add table
Reference in a new issue