Revision: 50318 http://brlcad.svn.sourceforge.net/brlcad/?rev=50318&view=rev Author: brlcad Date: 2012-04-26 12:57:43 +0000 (Thu, 26 Apr 2012) Log Message: ----------- looks like another fastf_t confusion. cid 325 was marked false positive, but a double cast should do the trick.
Modified Paths: -------------- brlcad/trunk/src/conv/ply-g.c Modified: brlcad/trunk/src/conv/ply-g.c =================================================================== --- brlcad/trunk/src/conv/ply-g.c 2012-04-26 12:50:31 UTC (rev 50317) +++ brlcad/trunk/src/conv/ply-g.c 2012-04-26 12:57:43 UTC (rev 50318) @@ -346,12 +346,8 @@ } } - if( val > (DBL_MAX / scale_factor) ) - return DBL_MAX; - - /* fake out overflow detection? */ - ret = val; - ret *= scale_factor; + /* casts for coverity overflow clarity */ + ret = (double)val * (double)scale_factor; return ret; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits