# | Line 203 | Line 203 | char *hdf; | |
---|---|---|
203 | hbl = (HDBEAMI *)malloc(nbeams(hp)*sizeof(HDBEAMI)); | |
204 | if (hbl == NULL) | |
205 | error(SYSTEM, "out of memory in addholo"); | |
206 | < | for (j = nbeams(hp); j > 0; j--) { /* sort the beams */ |
206 | > | for (j = nbeams(hp); j--; ) { /* sort the beams */ |
207 | hbl[j].h = hp; | |
208 | < | hbl[j].b = j; |
208 | > | hbl[j].b = j+1; |
209 | } | |
210 | qsort((char *)hbl, nbeams(hp), sizeof(HDBEAMI), hdfilord); | |
211 | for (j = 0; j < nbeams(hp); j++) /* load each beam */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |