IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 7, 2015, 11:42:53 AM (11 years ago)
Author:
eugene
Message:

add some more error checking and a timing test

File:
1 edited

Legend:

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

    r38342 r38425  
    157157
    158158  // extend the buffer size to add the new data
    159   off_t Nbytes = heap_offset + Ndata;
     159  off_t Nbytes = gfits_data_pad_size (heap_offset + Ndata);
    160160  REALLOCATE (table->buffer, char, Nbytes);
    161161
     
    198198  table->header->pcount = pcount;
    199199  table->datasize = gfits_data_size (table->header);
     200  myAssert (table->datasize == Nbytes, "inconsistent header and data");
    200201
    201202  return TRUE;
Note: See TracChangeset for help on using the changeset viewer.