Index: trunk/Ohana/src/imregister/spreg/match.c
===================================================================
--- trunk/Ohana/src/imregister/spreg/match.c	(revision 3509)
+++ trunk/Ohana/src/imregister/spreg/match.c	(revision 27435)
@@ -2,16 +2,16 @@
 # include "spreg.h"
 
-int *match_criteria (Spectrum *spectrum, int Nspectrum, int *Nmatch) {
+off_t *match_criteria (Spectrum *spectrum, off_t Nspectrum, off_t *Nmatch) {
 
-  int i, j;
-  int N, NMATCH;
-  int *match;
-  int reject;
-  int Nfilename, Nobject, Ntelescope, Ninstrument;
+  off_t i, j;
+  off_t N, NMATCH;
+  off_t *match;
+  off_t reject;
+  off_t Nfilename, Nobject, Ntelescope, Ninstrument;
 
   /* create selection index */
   N = 0;
   NMATCH = 1000;
-  ALLOCATE (match, int, NMATCH);
+  ALLOCATE (match, off_t, NMATCH);
 
   Nfilename = Nobject = Ntelescope = Ninstrument = 0;
@@ -42,5 +42,5 @@
     if (N == NMATCH) {
       NMATCH += 1000;
-      REALLOCATE (match, int, NMATCH);
+      REALLOCATE (match, off_t, NMATCH);
     }
   }
@@ -51,8 +51,8 @@
 # if (0)
 
-int *match_spectra (Spectrum *subset, int Nsubset, int *Nmatch) {
+off_t *match_spectra (Spectrum *subset, off_t Nsubset, off_t *Nmatch) {
   
-  int i, j, N, Nspectrum, Nfound;
-  int *match;
+  off_t i, j, N, Nspectrum, Nfound;
+  off_t *match;
   Spectrum *spectrum;
 
@@ -60,5 +60,5 @@
 
   /* find matching spectra - very inefficient : sort by obstime, find those first? */
-  ALLOCATE (match, int, Nsubset);
+  ALLOCATE (match, off_t, Nsubset);
   for (j = 0; j < Nsubset; j++) {
     match[j] = -1;
