IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 7, 2014, 5:37:10 AM (12 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140423/psLib/src/fits/psFitsScale.c

    r35980 r36827  
    10221022                       /* Add random factor [-0.5,0.5): adds a variance of 1/12, */ \
    10231023                       /* but preserves the expectation value */ \
    1024                         value += psRandomUniform(rng) - 0.5; \
     1024                        value += psRandomUniform(rng) ; \
    10251025                    } \
    10261026                    /* Check for underflow and overflow; set either to max */ \
    1027                     (OUT)->data.OUTTYPE[y][x] = (value < min || value > max ? max : value); \
     1027                    (OUT)->data.OUTTYPE[y][x] = (value < min || value > max ? max : floor(value)); \
    10281028                } \
    10291029            } \
Note: See TracChangeset for help on using the changeset viewer.