IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 24, 2010, 11:22:25 AM (16 years ago)
Author:
eugene
Message:

large update merging in changes for Ohana to support large files

Location:
trunk/Ohana
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana

  • trunk/Ohana/src/imregister/photreg/delete.c

    r7080 r27435  
    22# include "photreg.h"
    33
    4 void DeleteSubset (FITS_DB *db, PhotPars *photdata, int Nphotdata, int *match, int Nmatch) {
     4void DeleteSubset (FITS_DB *db, PhotPars *photdata, off_t Nphotdata, off_t *match, off_t Nmatch) {
    55
    6   int i, j;
    7   int *keep, Ndel, Nsubset;
     6  off_t i, j;
     7  off_t *keep, Ndel, Nsubset;
    88  PhotPars *subset;
    99
    10   ALLOCATE (keep, int, MAX (Nphotdata, 1));
     10  ALLOCATE (keep, off_t, MAX (Nphotdata, 1));
    1111  for (i = 0; i < Nphotdata; i++) keep[i] = TRUE;
    12   fprintf (stderr, "total of %d photdata\n", Nphotdata);
     12  fprintf (stderr, "total of %lld photdata\n", (long long) Nphotdata);
    1313
    1414  Ndel = 0;
     
    1919    Ndel ++;
    2020  }
    21   fprintf (stderr, "delete %d photdata\n", Ndel);
     21  fprintf (stderr, "delete %lld photdata\n", (long long) Ndel);
    2222
    2323  if (Ndel == 0) {
     
    3131  Nsubset = Nphotdata - Ndel;
    3232  ALLOCATE (subset, PhotPars, MAX (1, Nsubset));
    33   fprintf (stderr, "keeping %d photdata\n", Nsubset);
     33  fprintf (stderr, "keeping %lld photdata\n", (long long) Nsubset);
    3434  for (j = i = 0; i < Nphotdata; i++) {
    3535    if (!keep[i]) continue;
Note: See TracChangeset for help on using the changeset viewer.