From 5a1d028f56182922addfed8f1f1c28fdde12756c Mon Sep 17 00:00:00 2001 From: darco Date: Thu, 24 Mar 2005 20:52:16 +0000 Subject: [PATCH] floor is not needed when casting to int git-svn-id: http://svn.voria.com/code@2 1f10aa63-cdf2-0310-b900-c93c546f37ac --- ETL/trunk/ETL/_misc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ETL/trunk/ETL/_misc.h b/ETL/trunk/ETL/_misc.h index 2090583..f0bf3ed 100644 --- a/ETL/trunk/ETL/_misc.h +++ b/ETL/trunk/ETL/_misc.h @@ -80,8 +80,8 @@ inline int round_to_int(const double x) { return static_cast(x+0.5); } inline int ceil_to_int(const float x) { return static_cast(ceil(x)); } inline int ceil_to_int(const double x) { return static_cast(ceil(x)); } -inline int floor_to_int(const float x) { return static_cast(floor(x)); } -inline int floor_to_int(const double x) { return static_cast(floor(x)); } +inline int floor_to_int(const float x) { return static_cast(x); } +inline int floor_to_int(const double x) { return static_cast(x); } _ETL_END_NAMESPACE -- 2.7.4