From 949054e000e2ad88763950ba366a3938d0f92370 Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 28 Apr 2006 15:40:30 +0000 Subject: [PATCH] lround takes double, not float. --- vvp/main.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vvp/main.cc b/vvp/main.cc index 35c62af0b..a30b25f9a 100644 --- a/vvp/main.cc +++ b/vvp/main.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: main.cc,v 1.41 2006/04/27 05:04:59 steve Exp $" +#ident "$Id: main.cc,v 1.42 2006/04/28 15:40:30 steve Exp $" #endif # include "config.h" @@ -59,7 +59,7 @@ extern "C" const char*optarg; * it ourselves here. It is simply the nearest integer, rounded away * from zero. */ -extern "C" long int lround(float x) +extern "C" long int lround(double x) { if (x >= 0.0) return floor(x+0.5); @@ -296,6 +296,9 @@ int main(int argc, char*argv[]) /* * $Log: main.cc,v $ + * Revision 1.42 2006/04/28 15:40:30 steve + * lround takes double, not float. + * * Revision 1.41 2006/04/27 05:04:59 steve * Detect missing lround function. *