Skip to content

Commit

Permalink
replacing av_top_index with av_len
Browse files Browse the repository at this point in the history
  • Loading branch information
kmx committed Aug 26, 2015
1 parent a33b4fa commit 56f403d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Basic/Core/pdlcore.c.PL
Expand Up @@ -890,10 +890,10 @@ PDL_Indx av_ndcheck(AV* av, AV* dims, int level, int *datalevel)
static int _detect_datatype(AV *av) {
SV **item;
AV *array;
int top, i;
int count, i;
if (!av) return PDL_D;
top = av_top_index(av);
for (i = 0; i <= top; i++) {
count = av_len(av);
for (i = 0; i < count; i++) {
item = av_fetch(av, i, 0);
if (*item) {
if (SvROK(*item)) {
Expand Down

0 comments on commit 56f403d

Please sign in to comment.