IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2007, 4:38:52 PM (19 years ago)
Author:
Paul Price
Message:

Fixing check on image type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppArith/src/ppArithArguments.c

    r15571 r15574  
    9393        goto ERROR;
    9494    }
    95     if ((isMask && file1->type != PM_FPA_FILE_MASK) || file1->type != PM_FPA_FILE_IMAGE) {
     95    if ((isMask && file1->type != PM_FPA_FILE_MASK) || (!isMask && file1->type != PM_FPA_FILE_IMAGE)) {
    9696        psError(PS_ERR_IO, true, "File rule %s is not of the expected type", inFilerule);
    9797        goto ERROR;
     
    107107            goto ERROR;
    108108        }
    109         if ((isMask && file2->type != PM_FPA_FILE_MASK) || file2->type != PM_FPA_FILE_IMAGE) {
     109        if ((isMask && file2->type != PM_FPA_FILE_MASK) || (!isMask && file2->type != PM_FPA_FILE_IMAGE)) {
    110110            psError(PS_ERR_IO, true, "File rule %s is not of the expected type", inFilerule);
    111111            goto ERROR;
     
    124124        goto ERROR;
    125125    }
    126     if ((isMask && output->type != PM_FPA_FILE_MASK) || output->type != PM_FPA_FILE_IMAGE) {
     126    if ((isMask && output->type != PM_FPA_FILE_MASK) || (!isMask && output->type != PM_FPA_FILE_IMAGE)) {
    127127        psError(PS_ERR_IO, true, "%s is not of the expected type", outFilerule);
    128128        goto ERROR;
Note: See TracChangeset for help on using the changeset viewer.