# | Line 71 | Line 71 | interp2_realloc(INTERP2 *ip, int nsamps) | |
---|---|---|
71 | interp2_free(ip); | |
72 | return(NULL); | |
73 | } | |
74 | < | if (nsamps == ip->ns); |
74 | > | if (nsamps == ip->ns) |
75 | return(ip); | |
76 | if (ip->da != NULL) { /* will need to recompute distribution */ | |
77 | free(ip->da); | |
# | Line 303 | Line 303 | interp2_topsamp(float wt[], int si[], const int n, INT | |
303 | /* identify top n weights */ | |
304 | for (i = ip->ns; i--; ) { | |
305 | const double wti = get_wt(ip, i, x, y); | |
306 | + | if (wti <= 1e-9) |
307 | + | continue; |
308 | for (j = nn; j > 0; j--) { | |
309 | if (wt[j-1] >= wti) | |
310 | break; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |