Skip to content

Commit

Permalink
Slices use loop more
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Dec 20, 2024
1 parent 34e48c5 commit 0ea4e94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/PDL/Slices.pd
Original file line number Diff line number Diff line change
Expand Up @@ -1270,9 +1270,9 @@ EOC
Code =>pp_line_numbers(__LINE__, <<'EOC'),
PDL_Indx mi=0;
loop (N) %{
PDL_Indx len = $a(), li;
for (li=0; li < len; ++li, ++mi)
$c(M=>mi) = $b() + li;
PDL_Indx milim = mi + $a(), li = 0;
loop (M=mi:milim) %{ $c() = $b() + li++; %}
mi = milim;
%}
EOC
Doc =><<'EOD'
Expand Down

0 comments on commit 0ea4e94

Please sign in to comment.