IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8808 for trunk/psLib/src/types


Ignore:
Timestamp:
Sep 13, 2006, 11:11:11 AM (20 years ago)
Author:
jhoblitt
Message:

fix fprintf format errors causing compilation errors on x86 but correctly using inttypes.h
fix some whitespace issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psArguments.c

    r8805 r8808  
    77 *  @author David Robbins, MHPCC
    88 *
    9  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-09-13 02:20:15 $
     9 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-09-13 21:11:11 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1313 */
    1414
    15 #include<stdio.h>
    16 #include<stdarg.h>
    17 #include<string.h>
     15#include <stdio.h>
     16#include <stdarg.h>
     17#include <string.h>
     18#include <inttypes.h>
     19
    1820#include "psArguments.h"
    1921#include "fitsio.h"
     
    315317        // Print the value
    316318        switch (item->type) {
    317             PRINT_CASE(U8,"%u");
    318             PRINT_CASE(U16,"%u");
    319             PRINT_CASE(U32,"%u");
    320             PRINT_CASE(U64,"%lu");
    321             PRINT_CASE(S8,"%d");
    322             PRINT_CASE(S16,"%d");
    323             PRINT_CASE(S32,"%d");
    324             PRINT_CASE(S64,"%ld");
    325             PRINT_CASE(F32,"%.6e");
    326             PRINT_CASE(F64,"%.6e");
     319            PRINT_CASE(U8, "%u");
     320            PRINT_CASE(U16, "%u");
     321            PRINT_CASE(U32, "%u");
     322            PRINT_CASE(U64, "%" PRIu64);
     323            PRINT_CASE(S8, "%d");
     324            PRINT_CASE(S16, "%d");
     325            PRINT_CASE(S32, "%d");
     326            PRINT_CASE(S64, "%" PRId64);
     327            PRINT_CASE(F32, "%.6e");
     328            PRINT_CASE(F64, "%.6e");
    327329        case PS_DATA_BOOL:
    328330            if (item->data.B) {
Note: See TracChangeset for help on using the changeset viewer.