IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2011


Ignore:
Timestamp:
Oct 7, 2004, 10:49:57 AM (22 years ago)
Author:
harman
Message:

Fixed minor casting problem

Location:
trunk/psLib/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astronomy/psMetadata.c

    r2004 r2011  
    1212*  @author Ross Harman, MHPCC
    1313*
    14 *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2004-10-07 19:31:41 $
     14*  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2004-10-07 20:49:51 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    159159        break;
    160160    case PS_META_S32:
    161         metadataItem->data.S32 = (psS32)va_arg(argPtr, psF64);
     161        metadataItem->data.S32 = (psS32)va_arg(argPtr, psS32);
    162162        break;
    163163    case PS_META_F32:
     
    365365    }
    366366    // Decrement reference count, since the metadata item is now in metadata collection and no longer needed
    367     // here
    368367    psMemDecrRefCounter(metadataItem);
    369368
  • trunk/psLib/src/astronomy/psMetadataIO.c

    r2004 r2011  
    99*  @author Ross Harman, MHPCC
    1010*
    11 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2004-10-07 19:31:59 $
     11*  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2004-10-07 20:49:57 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    463463    int failedLines = 0;
    464464    psF64 tempDbl = 0.0;
     465    psS32 tempInt = 0.0;
    465466    psMetadataItem *metadataItem = NULL;
    466467    psVector *tempVec = NULL;
     
    613614                break;
    614615            case PS_META_S32:
     616                tempInt = (psS32)parseValue(strValue, &status);
     617                if(!status) {
     618                    psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempInt);
     619                } else {
     620                    status = 0;
     621                    failedLines++;
     622                    psError(__func__, "Failed to parse value. Value: %s Line %d: %s", strValue, lineCount, line);
     623                    continue;
     624                }
     625                break;
    615626            case PS_META_F32:
    616627            case PS_META_F64:
  • trunk/psLib/src/collections/psMetadata.c

    r2004 r2011  
    1212*  @author Ross Harman, MHPCC
    1313*
    14 *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2004-10-07 19:31:41 $
     14*  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2004-10-07 20:49:51 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    159159        break;
    160160    case PS_META_S32:
    161         metadataItem->data.S32 = (psS32)va_arg(argPtr, psF64);
     161        metadataItem->data.S32 = (psS32)va_arg(argPtr, psS32);
    162162        break;
    163163    case PS_META_F32:
     
    365365    }
    366366    // Decrement reference count, since the metadata item is now in metadata collection and no longer needed
    367     // here
    368367    psMemDecrRefCounter(metadataItem);
    369368
  • trunk/psLib/src/collections/psMetadataIO.c

    r2004 r2011  
    99*  @author Ross Harman, MHPCC
    1010*
    11 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2004-10-07 19:31:59 $
     11*  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2004-10-07 20:49:57 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    463463    int failedLines = 0;
    464464    psF64 tempDbl = 0.0;
     465    psS32 tempInt = 0.0;
    465466    psMetadataItem *metadataItem = NULL;
    466467    psVector *tempVec = NULL;
     
    613614                break;
    614615            case PS_META_S32:
     616                tempInt = (psS32)parseValue(strValue, &status);
     617                if(!status) {
     618                    psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempInt);
     619                } else {
     620                    status = 0;
     621                    failedLines++;
     622                    psError(__func__, "Failed to parse value. Value: %s Line %d: %s", strValue, lineCount, line);
     623                    continue;
     624                }
     625                break;
    615626            case PS_META_F32:
    616627            case PS_META_F64:
  • trunk/psLib/src/types/psMetadata.c

    r2004 r2011  
    1212*  @author Ross Harman, MHPCC
    1313*
    14 *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2004-10-07 19:31:41 $
     14*  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2004-10-07 20:49:51 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    159159        break;
    160160    case PS_META_S32:
    161         metadataItem->data.S32 = (psS32)va_arg(argPtr, psF64);
     161        metadataItem->data.S32 = (psS32)va_arg(argPtr, psS32);
    162162        break;
    163163    case PS_META_F32:
     
    365365    }
    366366    // Decrement reference count, since the metadata item is now in metadata collection and no longer needed
    367     // here
    368367    psMemDecrRefCounter(metadataItem);
    369368
  • trunk/psLib/src/types/psMetadataConfig.c

    r2004 r2011  
    99*  @author Ross Harman, MHPCC
    1010*
    11 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2004-10-07 19:31:59 $
     11*  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2004-10-07 20:49:57 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    463463    int failedLines = 0;
    464464    psF64 tempDbl = 0.0;
     465    psS32 tempInt = 0.0;
    465466    psMetadataItem *metadataItem = NULL;
    466467    psVector *tempVec = NULL;
     
    613614                break;
    614615            case PS_META_S32:
     616                tempInt = (psS32)parseValue(strValue, &status);
     617                if(!status) {
     618                    psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempInt);
     619                } else {
     620                    status = 0;
     621                    failedLines++;
     622                    psError(__func__, "Failed to parse value. Value: %s Line %d: %s", strValue, lineCount, line);
     623                    continue;
     624                }
     625                break;
    615626            case PS_META_F32:
    616627            case PS_META_F64:
  • trunk/psLib/src/xml/psXML.c

    r2004 r2011  
    99*  @author Ross Harman, MHPCC
    1010*
    11 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2004-10-07 19:31:59 $
     11*  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2004-10-07 20:49:57 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    463463    int failedLines = 0;
    464464    psF64 tempDbl = 0.0;
     465    psS32 tempInt = 0.0;
    465466    psMetadataItem *metadataItem = NULL;
    466467    psVector *tempVec = NULL;
     
    613614                break;
    614615            case PS_META_S32:
     616                tempInt = (psS32)parseValue(strValue, &status);
     617                if(!status) {
     618                    psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempInt);
     619                } else {
     620                    status = 0;
     621                    failedLines++;
     622                    psError(__func__, "Failed to parse value. Value: %s Line %d: %s", strValue, lineCount, line);
     623                    continue;
     624                }
     625                break;
    615626            case PS_META_F32:
    616627            case PS_META_F64:
Note: See TracChangeset for help on using the changeset viewer.