Skip to content

Commit

Permalink
if xform only has one datatype, use that - #511
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Dec 20, 2024
1 parent 4262204 commit 34e48c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/PDL/Core/pdlapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,8 @@ static inline pdl_datatypes pdl__type_detect(pdl_trans *trans) {
pdl_datatypes retval = PDL_INVALID, last_dtype = PDL_INVALID;
PDL_Indx i;
pdl_transvtable *vtable = trans->vtable;
if (vtable->gentypes[0] != PDL_INVALID && vtable->gentypes[0] == PDL_INVALID)
return vtable->gentypes[0]; /* only one allowed type, use that */
for (i=0; i<vtable->npdls; i++) {
pdl *pdl = trans->pdls[i];
short flags = vtable->par_flags[i];
Expand Down

0 comments on commit 34e48c5

Please sign in to comment.