gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] /srv/bzr/gnash/trunk r9607: Cast squareDistance() to


From: strk
Subject: Re: [Gnash-commit] /srv/bzr/gnash/trunk r9607: Cast squareDistance() to a double, whioch sqrt wants.
Date: Sat, 16 Aug 2008 09:50:12 +0200

On Fri, Aug 15, 2008 at 10:17:04PM -0600, address@hidden wrote:
> ------------------------------------------------------------
> revno: 9607
> committer: address@hidden
> branch nick: trunk
> timestamp: Fri 2008-08-15 22:17:04 -0600
> message:
>   Cast squareDistance() to a double, whioch sqrt wants.
> modified:
>   libbase/Point2d.h

> === modified file 'libbase/Point2d.h'
> --- a/libbase/Point2d.h       2008-07-22 21:24:49 +0000
> +++ b/libbase/Point2d.h       2008-08-16 04:17:04 +0000
> @@ -116,7 +116,7 @@
>       /// Return distance between this and the given point
>       boost::int32_t distance(const Point2d& p) const
>       {
> -             return (boost::int32_t)( std::sqrt( squareDistance(p) ) );
> +         return (boost::int32_t)( std::sqrt( 
> static_cast<double>(squareDistance(p)) ) );

I tought I changed all distance funx to return a double already.
If this is not the case, it should be instead.

--strk;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]