[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Another interesing warning

From: Daniel Rall <dlr_at_collab.net>
Date: 2006-02-11 00:38:35 CET

On Sat, 11 Feb 2006, Branko Čibej wrote:

> subversion\mod_dav_svn\repos.c(1327) : warning C4244: '=' : conversion from
> 'double ' to 'float ', possible loss of data
>
> Yes, atof() returns a double. We should either cast this explicitly, or
> make result->quality a double, too.

result->quality doesn't need a double's precision, so I've cast the
return value of atof() to a float in r18428.

--
Daniel Rall

  • application/pgp-signature attachment: stored
Received on Sat Feb 11 00:38:41 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.