IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2004


Ignore:
Timestamp:
Oct 7, 2004, 9:31:59 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

    r1989 r2004  
    1212*  @author Ross Harman, MHPCC
    1313*
    14 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2004-10-06 23:27:27 $
     14*  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2004-10-07 19:31:41 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    159159        break;
    160160    case PS_META_S32:
    161         metadataItem->data.S32 = va_arg(argPtr, psS32);
     161        metadataItem->data.S32 = (psS32)va_arg(argPtr, psF64);
    162162        break;
    163163    case PS_META_F32:
  • trunk/psLib/src/astronomy/psMetadataIO.c

    r1995 r2004  
    99*  @author Ross Harman, MHPCC
    1010*
    11 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2004-10-07 02:16:36 $
     11*  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2004-10-07 19:31:59 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    462462    int lineCount = 0;
    463463    int failedLines = 0;
    464     psF64 tempValue = 0.0;
     464    psF64 tempDbl = 0.0;
    465465    psMetadataItem *metadataItem = NULL;
    466466    psVector *tempVec = NULL;
     
    508508            } else if(repeatedChars(linePtr, '*') > 1) {
    509509                failedLines++;
    510                 psError(__func__, "More than one @ charecter not allowed. Line %d: %s", lineCount, line);
     510                psError(__func__, "More than one * charecter not allowed. Line %d: %s", lineCount, line);
    511511                continue;
    512512            } else if(repeatedChars(linePtr, '~') > 0) {
     
    515515                continue;
    516516            }
    517 
    518517
    519518            // Get metadata item name
     
    616615            case PS_META_F32:
    617616            case PS_META_F64:
    618                 tempValue = parseValue(strValue, &status);
     617                tempDbl = parseValue(strValue, &status);
    619618                if(!status) {
    620                     psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempValue);
     619                    psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempDbl);
    621620                } else {
    622621                    status = 0;
  • trunk/psLib/src/collections/psMetadata.c

    r1989 r2004  
    1212*  @author Ross Harman, MHPCC
    1313*
    14 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2004-10-06 23:27:27 $
     14*  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2004-10-07 19:31:41 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    159159        break;
    160160    case PS_META_S32:
    161         metadataItem->data.S32 = va_arg(argPtr, psS32);
     161        metadataItem->data.S32 = (psS32)va_arg(argPtr, psF64);
    162162        break;
    163163    case PS_META_F32:
  • trunk/psLib/src/collections/psMetadataIO.c

    r1995 r2004  
    99*  @author Ross Harman, MHPCC
    1010*
    11 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2004-10-07 02:16:36 $
     11*  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2004-10-07 19:31:59 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    462462    int lineCount = 0;
    463463    int failedLines = 0;
    464     psF64 tempValue = 0.0;
     464    psF64 tempDbl = 0.0;
    465465    psMetadataItem *metadataItem = NULL;
    466466    psVector *tempVec = NULL;
     
    508508            } else if(repeatedChars(linePtr, '*') > 1) {
    509509                failedLines++;
    510                 psError(__func__, "More than one @ charecter not allowed. Line %d: %s", lineCount, line);
     510                psError(__func__, "More than one * charecter not allowed. Line %d: %s", lineCount, line);
    511511                continue;
    512512            } else if(repeatedChars(linePtr, '~') > 0) {
     
    515515                continue;
    516516            }
    517 
    518517
    519518            // Get metadata item name
     
    616615            case PS_META_F32:
    617616            case PS_META_F64:
    618                 tempValue = parseValue(strValue, &status);
     617                tempDbl = parseValue(strValue, &status);
    619618                if(!status) {
    620                     psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempValue);
     619                    psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempDbl);
    621620                } else {
    622621                    status = 0;
  • trunk/psLib/src/types/psMetadata.c

    r1989 r2004  
    1212*  @author Ross Harman, MHPCC
    1313*
    14 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2004-10-06 23:27:27 $
     14*  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2004-10-07 19:31:41 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    159159        break;
    160160    case PS_META_S32:
    161         metadataItem->data.S32 = va_arg(argPtr, psS32);
     161        metadataItem->data.S32 = (psS32)va_arg(argPtr, psF64);
    162162        break;
    163163    case PS_META_F32:
  • trunk/psLib/src/types/psMetadataConfig.c

    r1995 r2004  
    99*  @author Ross Harman, MHPCC
    1010*
    11 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2004-10-07 02:16:36 $
     11*  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2004-10-07 19:31:59 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    462462    int lineCount = 0;
    463463    int failedLines = 0;
    464     psF64 tempValue = 0.0;
     464    psF64 tempDbl = 0.0;
    465465    psMetadataItem *metadataItem = NULL;
    466466    psVector *tempVec = NULL;
     
    508508            } else if(repeatedChars(linePtr, '*') > 1) {
    509509                failedLines++;
    510                 psError(__func__, "More than one @ charecter not allowed. Line %d: %s", lineCount, line);
     510                psError(__func__, "More than one * charecter not allowed. Line %d: %s", lineCount, line);
    511511                continue;
    512512            } else if(repeatedChars(linePtr, '~') > 0) {
     
    515515                continue;
    516516            }
    517 
    518517
    519518            // Get metadata item name
     
    616615            case PS_META_F32:
    617616            case PS_META_F64:
    618                 tempValue = parseValue(strValue, &status);
     617                tempDbl = parseValue(strValue, &status);
    619618                if(!status) {
    620                     psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempValue);
     619                    psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempDbl);
    621620                } else {
    622621                    status = 0;
  • trunk/psLib/src/xml/psXML.c

    r1995 r2004  
    99*  @author Ross Harman, MHPCC
    1010*
    11 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2004-10-07 02:16:36 $
     11*  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2004-10-07 19:31:59 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    462462    int lineCount = 0;
    463463    int failedLines = 0;
    464     psF64 tempValue = 0.0;
     464    psF64 tempDbl = 0.0;
    465465    psMetadataItem *metadataItem = NULL;
    466466    psVector *tempVec = NULL;
     
    508508            } else if(repeatedChars(linePtr, '*') > 1) {
    509509                failedLines++;
    510                 psError(__func__, "More than one @ charecter not allowed. Line %d: %s", lineCount, line);
     510                psError(__func__, "More than one * charecter not allowed. Line %d: %s", lineCount, line);
    511511                continue;
    512512            } else if(repeatedChars(linePtr, '~') > 0) {
     
    515515                continue;
    516516            }
    517 
    518517
    519518            // Get metadata item name
     
    616615            case PS_META_F32:
    617616            case PS_META_F64:
    618                 tempValue = parseValue(strValue, &status);
     617                tempDbl = parseValue(strValue, &status);
    619618                if(!status) {
    620                     psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempValue);
     619                    psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempDbl);
    621620                } else {
    622621                    status = 0;
Note: See TracChangeset for help on using the changeset viewer.