Skip to content

Commit

Permalink
simplify condition for make_physical calling physvaffine
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Jan 23, 2024
1 parent 4ad883b commit ba780ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Basic/Core/pdlapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,10 +762,8 @@ pdl_error pdl__make_physical_recprotect(pdl *it, int recurse_count) {
if(!it->trans_parent) {
return pdl_make_error_simple(PDL_EFATAL, "PDL Not physical but doesn't have parent");
}
if(it->trans_parent->flags & PDL_ITRANS_ISAFFINE) {
if(!PDL_VAFFOK(it))
PDL_RETERROR(PDL_err, pdl__make_physvaffine_recprotect(it, recurse_count+1));
}
if((it->trans_parent->flags & PDL_ITRANS_ISAFFINE) && !PDL_VAFFOK(it))
PDL_RETERROR(PDL_err, pdl__make_physvaffine_recprotect(it, recurse_count+1));
if(PDL_VAFFOK(it)) {
PDLDEBUG_f(printf("make_physical: VAFFOK\n"));
PDL_RETERROR(PDL_err, pdl_readdata_vaffine(it));
Expand Down

0 comments on commit ba780ef

Please sign in to comment.