IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40329


Ignore:
Timestamp:
Jan 31, 2018, 9:45:37 AM (8 years ago)
Author:
eugene
Message:

enforce consistent array sizes for matrix math

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/check_stack.c

    r38062 r40329  
    4848          Nz = stack[i].buffer[0].matrix.Naxis[2];
    4949        }
    50         if ((Nx != stack[i].buffer[0].matrix.Naxis[0]) &&
    51             (Ny != stack[i].buffer[0].matrix.Naxis[1]) &&
     50        if ((Nx != stack[i].buffer[0].matrix.Naxis[0]) ||
     51            (Ny != stack[i].buffer[0].matrix.Naxis[1]) |
    5252            (Nz != stack[i].buffer[0].matrix.Naxis[2])) {
    5353          push_error ("dimensions don't match");
Note: See TracChangeset for help on using the changeset viewer.