Index: trunk/Ohana/src/addstar/src/gettycho.c
===================================================================
--- trunk/Ohana/src/addstar/src/gettycho.c	(revision 21508)
+++ trunk/Ohana/src/addstar/src/gettycho.c	(revision 27435)
@@ -6,5 +6,5 @@
 static SkyTable *tychoTable = NULL;
 
-Stars *gettycho (SkyRegion *catstats, int photcode, int *nstars) {
+Stars *gettycho (SkyRegion *catstats, int photcode, unsigned int *nstars) {
 
   int i, j, nitems;
@@ -13,5 +13,5 @@
   FILE *f;
   int NTYCHO, Ntycho;
-  int firstRow, firstByte;
+  off_t firstRow, firstByte;
   short int TYCHO_B, TYCHO_V;
   e_time TychoEpoch;
@@ -60,7 +60,7 @@
 			  region[0].Rmin, region[0].Rmax, region[0].Dmin, region[0].Dmax);
 
-    firstRow  = atoi (region[0].name);
+    firstRow  = strtol (region[0].name, NULL, 0);
     firstByte = firstRow * NBYTE;
-    fseek (f, firstByte, SEEK_SET);
+    fseeko (f, firstByte, SEEK_SET);
 
     while (1) {
