- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/Ohana/src/opihi/dvo/cmpread.c
r20936 r27840 6 6 int cmpread (int argc, char **argv) { 7 7 8 int i, field, Naxis, Nbytes, Nstars; 8 off_t i, Nbytes, Nstars; 9 int field, Naxis; 9 10 double tR, tD; 10 11 float value; … … 61 62 return (FALSE); 62 63 } 63 fseek (f, header.size, SEEK_SET);64 fseeko (f, header.datasize, SEEK_SET); 64 65 65 66 /* find expected number of stars */ 66 if (!gfits_scan (&header, "NSTARS", "% d", 1,&Nstars)) {67 if (!gfits_scan (&header, "NSTARS", "%lld", 1, (long long *) &Nstars)) { 67 68 gprint (GP_ERR, "ERROR: can't get NSTARS from header\n"); 68 69 gfits_free_header (&header); … … 76 77 /* allocate space for stars */ 77 78 gprint (GP_ERR, "reading from TEXT cmp file %s\n", argv[2]); 78 if (!gfits_scan (&header, "NSTARS", "% d", 1,&Nstars)) {79 if (!gfits_scan (&header, "NSTARS", "%lld", 1, (long long *) &Nstars)) { 79 80 gprint (GP_ERR, "ERROR: failed to find NSTARS\n"); 80 81 exit (1); … … 84 85 gprint (GP_ERR, "reading from FITS cmp file %s\n", argv[2]); 85 86 Nbytes = gfits_data_size (&header); 86 fseek (f, Nbytes, SEEK_CUR);87 fseeko (f, Nbytes, SEEK_CUR); 87 88 stars = cmpReadFits (f, &Nstars); 88 89 } … … 138 139 free (stars); 139 140 gfits_free_header (&header); 140 gprint (GP_ERR, "loaded % d objects\n",Nstars);141 gprint (GP_ERR, "loaded %lld objects\n", (long long) Nstars); 141 142 return (TRUE); 142 143 }
Note:
See TracChangeset
for help on using the changeset viewer.
