Revision: 52707
          http://brlcad.svn.sourceforge.net/brlcad/?rev=52707&view=rev
Author:   brlcad
Date:     2012-10-03 05:24:06 +0000 (Wed, 03 Oct 2012)
Log Message:
-----------
scan into doubles, not fastf_t

Modified Paths:
--------------
    brlcad/trunk/src/librt/vlist.c

Modified: brlcad/trunk/src/librt/vlist.c
===================================================================
--- brlcad/trunk/src/librt/vlist.c      2012-10-03 05:21:18 UTC (rev 52706)
+++ brlcad/trunk/src/librt/vlist.c      2012-10-03 05:24:06 UTC (rev 52707)
@@ -673,18 +673,23 @@
     int ret;
     int i = 0;
     unsigned int tchar = 0;
+    double val;
 
     for (i = 0; i < up->narg; i++) {
        switch (up->targ) {
            case TSHORT:
-               ret = fscanf(fp, "%lf", &arg[i]);
+               ret = fscanf(fp, "%lf", &val);
                if (ret != 1)
                    bu_log("WARNING: uplot short input failure\n");
+               else
+                   arg[i] = val;
                break;
            case TIEEE:
-               ret = fscanf(fp, "%lf", &arg[i]);
+               ret = fscanf(fp, "%lf", &val);
                if (ret != 1)
                    bu_log("WARNING: uplot floating point input failure\n");
+               else
+                   arg[i] = val;
                break;
            case TSTRING:
                ret = fscanf(fp, "%256s\n", &carg[0]);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to