IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 1, 2016, 11:38:17 AM (10 years ago)
Author:
eugene
Message:

fix signed / unsigned inconsistencies; free memory in tablecomp.c test; drop tests for non-ansi-C %L-style formats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20160226/src/libfits/test/ricetest.c

    r38404 r39421  
    11# include <ohana.h>
    22# include <gfitsio.h>
     3# include <gfits_compress.h>
    34# include "tap_ohana.h"
    45
     
    67# define NBYTE 4*NPIX
    78
    8 int main (int argc, char **argv) {
     9int main (void) {
    910 
    1011  plan_tests (45);
     
    1213  diag ("libfits ricetest.c tests");
    1314
    14   // buffers to store max array
    15   char rawdata[NBYTE];
    16   char cmpdata[NBYTE];
    17   char outdata[NBYTE];
    18 
    1915  // ok (1, "failure");
    2016
    2117  if (1) {
     18    // buffers to store max array
     19    char rawdata[NBYTE];
     20    unsigned char outdata[NBYTE];
     21    unsigned char cmpdata[NBYTE];
    2222    char *rawvalue = (char *) rawdata;
    2323    char *outvalue = (char *) outdata;
     
    4646
    4747  if (1) {
     48    // buffers to store max array
     49    char rawdata[NBYTE];
     50    unsigned short outdata[NBYTE];
     51    unsigned char cmpdata[NBYTE];
     52
    4853    short *rawvalue = (short *) rawdata;
    4954    short *outvalue = (short *) outdata;
     
    7277
    7378  if (1) {
     79    // buffers to store max array
     80    char rawdata[NBYTE];
     81    unsigned int outdata[NBYTE];
     82    unsigned char cmpdata[NBYTE];
     83
    7484    int *rawvalue = (int *) rawdata;
    7585    int *outvalue = (int *) outdata;
Note: See TracChangeset for help on using the changeset viewer.