Changeset 41422 for trunk/Ohana/src/libfits/table/F_table_format.c
- Timestamp:
- Sep 24, 2020, 2:44:55 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libfits/table/F_table_format.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libfits/table/F_table_format.c
r39399 r41422 24 24 switch (*Fchar) { 25 25 case 'X': 26 { *Nbytes = 1; strcpy (type, " byte"); *Nval = 1 + (int) Nv / 8; }26 { *Nbytes = 1; strcpy (type, "gfbyte"); *Nval = 1 + (int) Nv / 8; } 27 27 break; 28 28 case 'L': 29 { *Nbytes = 1; strcpy (type, " byte"); *Nval = Nv; }29 { *Nbytes = 1; strcpy (type, "gfbyte"); *Nval = Nv; } 30 30 break; 31 31 case 'A': … … 33 33 break; 34 34 case 'B': 35 { *Nbytes = 1; strcpy (type, " byte"); *Nval = Nv; }35 { *Nbytes = 1; strcpy (type, "gfbyte"); *Nval = Nv; } 36 36 break; 37 37 case 'I': … … 108 108 109 109 Type = 'x'; 110 if (Fchar == 'D') { *Nbytes = 1; strcpy (type, "double"); Type = 'e'; *Nval = Nv; } 111 if (Fchar == 'E') { *Nbytes = 1; strcpy (type, "float"); Type = 'e'; *Nval = Nv; } 110 112 if (Fchar == 'F') { *Nbytes = 1; strcpy (type, "float"); Type = 'f'; *Nval = Nv; } 111 113 if (Fchar == 'I') { *Nbytes = 1; strcpy (type, "int"); Type = 'd'; *Nval = Nv; } … … 284 286 } 285 287 } 286 if (!strcmp (type, " byte")) {288 if (!strcmp (type, "gfbyte")) { 287 289 for (j = 0; j < Ny; j++) { 288 290 for (n = 0; n < Nval; n++) { … … 377 379 } 378 380 } 379 if (!strcmp (type, " byte")) {381 if (!strcmp (type, "gfbyte")) { 380 382 for (j = 0; j < Ny; j++) { 381 383 for (n = 0; n < Nval; n++) {
Note:
See TracChangeset
for help on using the changeset viewer.
