X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=include%2Finterpolator.h;fp=include%2Finterpolator.h;h=c6a34d69792b1c43f7e04be8e67a83775225bd83;hb=c2da697c4203112cf53df1fcd2f8de6f5e385f14;hp=1b1fc484b2fc24b63f382dff5cd522e10ecce587;hpb=9c75a49d81caa44eb0397f60cc442ebab1738309;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;