IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 8, 2015, 11:46:15 AM (11 years ago)
Author:
eugene
Message:

add compression timing and fix opt build issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/libfits/table/F_table_varlength.c

    r38425 r38429  
    119119void *gfits_varlength_column_pointer (FTable *ftable, VarLengthColumn *column, off_t row, off_t *length) {
    120120
    121   void *result;
    122   off_t offset, Nx;
    123 
    124121  if ((column->mode != 'P') && (column->mode != 'Q')) abort();
    125122
    126123  // find the values for the specified row
    127124  // the values in the main table for this row and varlength column:
    128   Nx = ftable->header->Naxis[0];
     125  off_t Nx = ftable->header->Naxis[0];
     126  off_t offset = 0;
    129127
    130128  if (column->mode == 'P') {
     
    143141  // fprintf (stderr, "length: %d, offset: %d\n", (int) *length, (int) offset);
    144142
    145   result = (void *) (ftable->buffer + ftable->heap_start + offset);
     143  void *result = (void *) (ftable->buffer + ftable->heap_start + offset);
    146144  return result;
    147145}
Note: See TracChangeset for help on using the changeset viewer.