IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7490


Ignore:
Timestamp:
Jun 9, 2006, 5:36:13 PM (20 years ago)
Author:
Paul Price
Message:

S64 and U64 should be printed with %lld and %llu.

File:
1 edited

Legend:

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

    r7472 r7490  
    1212 *  @author Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.110 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-06-10 02:28:17 $
     14 *  @version $Revision: 1.111 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-06-10 03:36:13 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    11631163            break;
    11641164        case PS_DATA_S64:
    1165             fprintf(fd, "%ld", item->data.S64);
     1165            fprintf(fd, "%lld", item->data.S64);
    11661166            break;
    11671167        case PS_DATA_U8:
     
    11751175            break;
    11761176        case PS_DATA_U64:
    1177             fprintf(fd, "%lu", item->data.U64);
     1177            fprintf(fd, "%llu", item->data.U64);
    11781178            break;
    11791179        case PS_DATA_F32:
     
    12301230                    fprintf(fd, "U64  ");
    12311231                    for (int i = 0; i < vector->n; i++) {
    1232                         fprintf(fd, "%lu ", vector->data.U64[i]);
     1232                        fprintf(fd, "%llu ", vector->data.U64[i]);
    12331233                    }
    12341234                    break;
     
    12541254                    fprintf(fd, "S64  ");
    12551255                    for (int i = 0; i < vector->n; i++) {
    1256                         fprintf(fd, "%ld ", vector->data.S64[i]);
     1256                        fprintf(fd, "%lld ", vector->data.S64[i]);
    12571257                    }
    12581258                    break;
Note: See TracChangeset for help on using the changeset viewer.