Skip to content

Commit

Permalink
firstvals_nophys error if not ALLOCATED
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Jan 22, 2024
1 parent b62b689 commit 710c348
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Basic/Core/Core.xs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ void
firstvals_nophys(x)
pdl *x
PPCODE:
if (!(x->state & PDL_ALLOCATED)) barf("firstvals_nophys called on non-ALLOCATED", x);
PDL_Indx i, maxvals = PDLMIN(10, x->nvals);
EXTEND(sp, maxvals);
for(i=0; i<maxvals; i++) {
Expand Down

0 comments on commit 710c348

Please sign in to comment.