IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39292 for trunk


Ignore:
Timestamp:
Dec 19, 2015, 2:09:37 PM (11 years ago)
Author:
eugene
Message:

do not crash on expand = 0

Location:
trunk/Ohana/src/kapa2/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kapa2/src/Remap16.c

    r34088 r39292  
    4848  // set up expansions
    4949  if (picture[0].expand == -1) picture[0].expand = 1;
     50  if (picture[0].expand ==  0) picture[0].expand = 1;
    5051  assert ((picture[0].expand >= 1) || (picture[0].expand <= -2));
    5152  expand_in = expand_out = 1.0;
  • trunk/Ohana/src/kapa2/src/Remap24.c

    r34088 r39292  
    3232  // set up expansions
    3333  if (picture[0].expand == -1) picture[0].expand = 1;
     34  if (picture[0].expand ==  0) picture[0].expand = 1;
    3435  assert ((picture[0].expand >= 1) || (picture[0].expand <= -2));
    3536  expand_in = expand_out = 1.0;
  • trunk/Ohana/src/kapa2/src/Remap32.c

    r37807 r39292  
    5050  // set up expansions
    5151  if (picture[0].expand == -1) picture[0].expand = 1;
     52  if (picture[0].expand ==  0) picture[0].expand = 1;
    5253  assert ((picture[0].expand >= 1) || (picture[0].expand <= -2));
    5354  expand_in = expand_out = 1.0;
  • trunk/Ohana/src/kapa2/src/Remap8.c

    r34088 r39292  
    3131  // set up expansions
    3232  if (picture[0].expand == -1) picture[0].expand = 1;
     33  if (picture[0].expand ==  0) picture[0].expand = 1;
    3334  assert ((picture[0].expand >= 1) || (picture[0].expand <= -2));
    3435  expand_in = expand_out = 1.0;
Note: See TracChangeset for help on using the changeset viewer.