Skip to content

Commit

Permalink
quick fix for g331 failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rdm committed Jun 14, 2023
1 parent 1a933ca commit c32e066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsrc/u.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ I jti0(J jt,A w){ARGCHK1(w);
}
R cval; // too-large values don't convert, handle separately
}
if (AT(w)&(RAT+XNUM)) {
if (AT(w)&XNUM) {
X x= XAV(w)[0];
if (ifits_slong_pX(x)) {
I r= IgetX(x);
Expand All @@ -245,7 +245,7 @@ I jti0(J jt,A w){ARGCHK1(w);
if (XSGN(x)>0) R IMAX; else R -IMAX;
}
if(!(w=vi(w)))R 0; ASSERT(!AR(w),EVRANK);
if (ISGMP(w)) SEGFAULT; // this should never happen
if (ISGMP(w)||AT(w)&RAT) SEGFAULT; // this should never happen
R IAV(w)[0];
} // can't move the ASSERT earlier without breaking a lot of tests

Expand Down

0 comments on commit c32e066

Please sign in to comment.