You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
p=2<r?2-r:0; h=1; if(AN(w)==0)p=0; else{DO(r-2, if(s[i]){h*=s[i]; if(__builtin_add_overflow(p,h,&p)){p=IMAX-1; break;}}else{p=0; break;})} // h cannot overflow if AN!=0; but p can
818
819
// Set h = max#lines to output, the smaller of (the # before spacing) and (the number we allow)
// Now we can allocate the result array. Set zu,zv->beginning of the data area
831
832
GATV0(z,LIT,zn,1); zu=zv=CAV1(z);
832
833
// h=# beginning lines to output. If all the lines, including spacing, fit in the user's limit, accept them all; otherwise use the user's starting number
833
-
h=lba<nq+(q?p:0)?lb:IMAX;
834
+
h=lba-(q?p:0)<nq?lb:IMAX-1;
834
835
// Loop for each line of output. lc gives number of lines emitted so far, including ones called for by EOL inside character data
835
836
for(i=lc=0;i<nq;++i){
836
837
// Emit leading EOLs according to number of boundary crossings - only when we cross a 2-cell boundary
0 commit comments