IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 13, 2006, 7:18:00 PM (19 years ago)
Author:
jhoblitt
Message:

fix false assumption that 'counter' is a string (it's really a u64 and psDB was broken)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxtag.c

    r10114 r10709  
    2121#include <config.h>
    2222#endif
     23
     24#include <inttypes.h>
    2325
    2426#include "pxtools.h"
     
    8789    psMetadata *row = output->data[0];
    8890    bool status = false;
    89     psString counter = psMetadataLookupStr(&status, row, "counter");
     91    psU64 counter = psMetadataLookupU64(&status, row, "counter");
    9092    if (!status) {
    9193        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for counter");
     
    9496    }
    9597    psString exp_tag = NULL;
    96     psStringAppend(&exp_tag, "%s.%s", exp_id, counter);
     98    psStringAppend(&exp_tag, "%s.%" PRIu64, exp_id, counter);
    9799    psFree(output);
    98100
Note: See TracChangeset for help on using the changeset viewer.