X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=include%2Finterpolator.h;h=c6a34d69792b1c43f7e04be8e67a83775225bd83;hb=2cc32f73fdf3fed44ce0272784ed68252f1b717a;hp=1b1fc484b2fc24b63f382dff5cd522e10ecce587;hpb=320062d4d1e53ab9da799c77e9886b1e36cddcf5;p=ctsim.git diff --git a/include/interpolator.h b/include/interpolator.h index 1b1fc48..c6a34d6 100644 --- a/include/interpolator.h +++ b/include/interpolator.h @@ -2,7 +2,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: interpolator.h,v 1.4 2001/03/24 05:28:28 kevin Exp $ +** $Id: interpolator.h,v 1.5 2001/03/30 22:09:09 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -63,8 +63,8 @@ public: T interpolate (double dXPos, double dYPos) { - int iFloorX = floor (dXPos); - int iFloorY = floor (dYPos); + int iFloorX = static_cast(floor(dXPos)); + int iFloorY = static_cast(floor (dYPos)); double dXFrac = dXPos - iFloorX; double dYFrac = dYPos - iFloorY;