Skip to content

Commit 26d390f

Browse files
committed
({ /:) reverts incorrectly
1 parent c8df586 commit 26d390f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jsrc/vg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,10 +792,10 @@ DF2(jtordstat){A q,t=0;I j,m,m0,m1,n,wt;D *qv;
792792
DF2(jtordstati){A t;I n,wt;
793793
ARGCHK2(a,w);
794794
n=AN(w); wt=AT(w);
795-
if(((4-n)&((AR(a)|(1^AR(w)))-1)&(-(wt&FL+INT)))>=0)R jthook1cell(jt,w,self); // revert if not int/float, len>4, and (atom a & list w)
795+
if(((4-n)&((AR(a)|(1^AR(w)))-1)&(-(wt&FL+INT)))>=0)R jthook2cell(jt,a,w,self); // revert if not int/float, len>4, and (atom a & list w)
796796
RZ(t=jtordstat(jt,a,w,0)); // Get the value of the ath order statistic. No self, because it can't revert (checks are identical)
797797
I j=0; // =0 needed to stifle warning
798-
if(wt&FL){D p=DAV(t)[0],*v=DAV(w); DO(n, if(p==*v++){j=i; break;});} // get index for the value we found
798+
if(wt&FL){D p=DAV(t)[0],*v=DAV(w); DO(n, if(p==*v++){j=i; break;});} // get index for the value we found scaf use faster search
799799
else {I p=AV(t)[0],*v= AV(w); DO(n, if(p==*v++){j=i; break;});}
800800
R sc(j);
801801
} /* a {/:w */

0 commit comments

Comments
 (0)