refactoring: calling out 'const' things

This commit is contained in:
rusefi 2019-01-13 01:25:53 -05:00
parent f70f9a0559
commit fd652c8a40
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ int needInterpolationLogging(void);
* @brief Two-dimensional table lookup with linear interpolation * @brief Two-dimensional table lookup with linear interpolation
*/ */
template<typename vType> template<typename vType>
float interpolate3d(float x, float xBin[], int xBinSize, float y, float yBin[], int yBinSize, vType* map[]) { float interpolate3d(float x, const float xBin[], int xBinSize, float y, const float yBin[], int yBinSize, vType* map[]) {
if (cisnan(x)) { if (cisnan(x)) {
warning(CUSTOM_INTEPOLATE_ERROR_3, "%.2f: x is NaN in interpolate3d", x); warning(CUSTOM_INTEPOLATE_ERROR_3, "%.2f: x is NaN in interpolate3d", x);
return NAN; return NAN;