Revision: 49331
http://brlcad.svn.sourceforge.net/brlcad/?rev=49331&view=rev
Author: erikgreenwald
Date: 2012-02-08 13:32:21 +0000 (Wed, 08 Feb 2012)
Log Message:
-----------
massage double through floor() and cast instead of blindly assigning to int.
Cov326 (I hope)
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-02-08 13:27:58 UTC (rev 49330)
+++ brlcad/trunk/src/conv/ply-g.c 2012-02-08 13:32:21 UTC (rev 49331)
@@ -382,7 +382,7 @@
if ( fscanf( ply_fp, "%lf", &val_double ) != 1 ) {
bu_exit(1, "ERROR parsing data\n" );
}
- val = val_double;
+ val = (int)floor(val_double);
break;
}
} else {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits