Changeset 16825
- Timestamp:
- Mar 4, 2008, 5:26:59 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFitsTable.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsTable.c
r15662 r16825 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $10 * @date $Date: 200 7-11-20 19:14:22$9 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2008-03-05 03:26:59 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 439 439 // A new one! 440 440 colSpec *spec = psAlloc(sizeof(colSpec)); // Specification for this column 441 spec->type = colItem->type; 441 // BOOL type is not a valid vector type, so we translate it to U8 442 spec->type = colItem->type == PS_TYPE_BOOL ? PS_TYPE_U8 : colItem->type; 442 443 spec->size = size; 443 444 if (colItem->type == PS_DATA_VECTOR) { … … 453 454 spec->size = size; 454 455 } 455 if (colItem->type != spec->type) { 456 if (colItem->type != spec->type && 457 colItem->type != PS_TYPE_BOOL && spec->type != PS_TYPE_U8) { 456 458 psWarning("Differing type found for column %s: %x vs %x --- using the first found.\n", 457 459 colSpecItem->name, colItem->type, spec->type);
Note:
See TracChangeset
for help on using the changeset viewer.
