Skip to content

Commit

Permalink
setdims unsets ALLOCATED if needed, so make_physdims needn't
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Mar 8, 2024
1 parent 4f43e16 commit b76db03
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Basic/Core/pdlapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,11 +656,6 @@ pdl_error pdl_make_physdims(pdl *it) {
PDLDEBUG_f(printf("make_physdims: calling redodims %p on %p\n",
trans,it));
REDODIMS(PDL_RETERROR, trans);
/* why this one? will the old allocated data be freed correctly? */
if(c && (it->state & PDL_ALLOCATED)) {
PDLDEBUG_f(printf("make_physdims turning off allocated, before="); pdl_dump_flags_fixspace(it->state, 0, PDL_FLAGS_PDL));
it->state &= ~PDL_ALLOCATED;
}
PDLDEBUG_f(printf("make_physdims exit %p\n",(void*)it));
return PDL_err;
}
Expand Down

0 comments on commit b76db03

Please sign in to comment.