Skip to content

Commit ba922f3

Browse files
committed
Check for null pointer
1 parent ca19a7b commit ba922f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jsrc/wn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ F2(jtexec2){F12IP;A z;B b,p;C d,*v;I at,c,i,k,m,n,r,*s;
526526
// Select the precision to use: the smallest that can hold the data, but never less than the precision of x
527527
C cvtmask=(~AT(a)&B01)<<1; // if x is not B01, set mask to suppress conversion to B01
528528
cvtmask=AT(a)&B01+INT?cvtmask:6; // if not B01 or INT, suppress conversion to INT (but it may be INT already)
529-
if(unlikely(AT(z)&CONJ)){cvtmask=6; AT(z)&=~CONJ;} // if there was integer overflow, suppress conversion to INT/B01
529+
if(z&&unlikely(AT(z)&CONJ)){cvtmask=6; AT(z)&=~CONJ;} // if there was integer overflow, suppress conversion to INT/B01
530530
cvtmask=AT(a)&B01+INT+FL?cvtmask:14; // if not B01/INT/FL, suppress conversion to FL
531531
R bcvt(cvtmask,z);
532532
}

0 commit comments

Comments
 (0)