Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 1, 2012, 6:48:06 PM (12 years ago)
Author:
landauf
Message:

reverted changes of r9020 in LibraryConfig.cmake
fixed warning in Math.h
added include directories for tests
fixed runtime path in CTestCustom.cmake

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/testing/src/libraries/util/Math.h

    r9026 r9077  
    238238    inline T interpolate(float time, const T& start, const T& end)
    239239    {
    240         return time * (end - start) + start;
     240        return static_cast<T>(time * (end - start) + start);
    241241    }
    242242
     
    251251    inline T interpolateSmooth(float time, const T& start, const T& end)
    252252    {
    253         return (-2 * (end - start) * cube(time)) + (3 * (end - start) * square(time)) + start;
     253        return static_cast<T>((-2 * (end - start) * cube(time)) + (3 * (end - start) * square(time)) + start);
    254254    }
    255255
Note: See TracChangeset for help on using the changeset viewer.