IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2019, 1:46:17 PM (7 years ago)
Author:
eugene
Message:

fix error in code re: exp_id (S64, not Str)

File:
1 edited

Legend:

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

    r40467 r40667  
    24782478        psMetadata *where = psMetadataAlloc();
    24792479        for (long i = 0; i < psArrayLength(inputExps); i++) {
    2480           XXX note that exp_id is not a STRING
    2481             if (!psMetadataAddStr(where, PS_LIST_TAIL, "exp_id",
    2482                     PS_META_DUPLICATE_OK, "==",
    2483                     ((detInputExpRow *)inputExps->data[i])->exp_id)) {
     2480            detInputExpRow *row = (detInputExpRow *row) inputExps->data[i];
     2481            if (!psMetadataAddS64(where, PS_LIST_TAIL, "exp_id", PS_META_DUPLICATE_OK, "==", row->exp_id)) {
    24842482                psError(PS_ERR_UNKNOWN, false, "failed to add item exp_id");
    24852483                psFree(inputExps);
Note: See TracChangeset for help on using the changeset viewer.