** 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
T interpolate (double dXPos, double dYPos)
{
- int iFloorX = floor (dXPos);
- int iFloorY = floor (dYPos);
+ int iFloorX = static_cast<int>(floor(dXPos));
+ int iFloorY = static_cast<int>(floor (dYPos));
double dXFrac = dXPos - iFloorX;
double dYFrac = dYPos - iFloorY;