IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34890


Ignore:
Timestamp:
Jan 7, 2013, 4:22:46 PM (14 years ago)
Author:
eugene
Message:

validate subset logic length

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/Ohana/src/opihi/cmd.data/subset.c

    r34461 r34890  
    3535  }
    3636  if ((tvec = SelectVector (out, OLDVECTOR, TRUE)) == NULL) goto error;
    37   /* check size of ivec, tvec: must match */
     37  if (ivec->Nelements != tvec->Nelements) {
     38    /* check size of ivec, tvec: must match */
     39    gprint (GP_ERR, "logical expression has different length from input vector\n");
     40    goto error;
     41  }
    3842
    3943  // ovec matches ivec in type
Note: See TracChangeset for help on using the changeset viewer.