Index: trunk/Ohana/src/opihi/dvo/lightcurve.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/lightcurve.c	(revision 20936)
+++ trunk/Ohana/src/opihi/dvo/lightcurve.c	(revision 27435)
@@ -5,6 +5,7 @@
   double Ra, Dec, Radius, Radius2, r;
   double *RA, *DEC;
-  int Nstars, found, PhotCodeSelect;
-  int i, j, k, m, N, NPTS, Nsecfilt, RELPHOT, *N1, TimeFormat;
+  off_t i, j, k, m, Nstars, *N1;
+  int found, PhotCodeSelect;
+  int N, NPTS, Nsecfilt, RELPHOT, TimeFormat;
   time_t TimeReference;
 
@@ -71,5 +72,5 @@
   ALLOCATE (RA, double, Nstars);
   ALLOCATE (DEC, double, Nstars);
-  ALLOCATE (N1, int, Nstars);
+  ALLOCATE (N1, off_t, Nstars);
 
   /* find star(s) in RA, DEC list -- use a dumb algorithm for now, improve later */
