From koffice Tue Oct 29 18:50:11 2002 From: Morten =?iso-8859-1?q?Bj=F8rn?= Date: Tue, 29 Oct 2002 18:50:11 +0000 To: koffice Subject: KSpread HEAD gcc 3.2 compile fix (simple) X-MARC-Message: https://marc.info/?l=koffice&m=103591741126723 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary-00=_uYuv9UUpGUZl2eR" --Boundary-00=_uYuv9UUpGUZl2eR Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Just in some of you have the same problem... -- best regards Morten --Boundary-00=_uYuv9UUpGUZl2eR Content-Type: text/x-diff; charset="us-ascii"; name="koffice.gcc32.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="koffice.gcc32.diff" --- /usr/portage/distfiles/cvs-src/kde/koffice/kspread/kspread_functions_financial.cc 2002-10-20 08:19:35.000000000 +0000 +++ kspread_functions_financial.cc 2002-10-29 17:42:25.000000000 +0000 @@ -573,7 +573,7 @@ double fl = floor( d ); double r = d - fl; - context.setValue( new KSValue( fl + ( r * pow( 10, n ) / (double) f ) ) ); + context.setValue( new KSValue( fl + ( r * pow( 10.0, n ) / (double) f ) ) ); return true; } @@ -608,7 +608,7 @@ double fl = floor( d ); double r = d - fl; - context.setValue( new KSValue( fl + ( ( r * (double) f ) / pow( 10, n ) ) ) ); + context.setValue( new KSValue( fl + ( ( r * (double) f ) / pow( 10.0, n ) ) ) ); return true; } --Boundary-00=_uYuv9UUpGUZl2eR-- ____________________________________ koffice mailing list koffice@mail.kde.org To unsubscribe please visit: http://mail.kde.org/mailman/listinfo/koffice