Revision: 55683
          http://sourceforge.net/p/brlcad/code/55683
Author:   carlmoore
Date:     2013-06-06 16:14:16 +0000 (Thu, 06 Jun 2013)
Log Message:
-----------
cosmetic stuff to resemble d-f.c source as much as possible

Modified Paths:
--------------
    brlcad/trunk/src/sig/f-d.c

Modified: brlcad/trunk/src/sig/f-d.c
===================================================================
--- brlcad/trunk/src/sig/f-d.c  2013-06-06 15:59:17 UTC (rev 55682)
+++ brlcad/trunk/src/sig/f-d.c  2013-06-06 16:14:16 UTC (rev 55683)
@@ -31,8 +31,8 @@
 #include "common.h"
 
 #include <stdlib.h> /* for atof() */
+#include <string.h>
 #include <math.h>
-#include <string.h>
 #include "bio.h"
 
 #include "bu.h"
@@ -60,19 +60,18 @@
     }
 
     while ((num = fread(&ibuf[0], sizeof(ibuf[0]), 512, stdin)) > 0) {
-       if (!EQUAL(scale, 1.0)) {
+       if (EQUAL(scale, 1.0)) {
            for (i = 0; i < num; i++)
-               obuf[i] = ibuf[i] * scale;
+               obuf[i] = ibuf[i];
        } else {
            for (i = 0; i < num; i++)
-               obuf[i] = ibuf[i];
+               obuf[i] = ibuf[i] * scale;
        }
 
        ret = fwrite(&obuf[0], sizeof(obuf[0]), num, stdout);
        if (ret != (size_t)num)
            perror("fwrite");
     }
-
     return 0;
 }
 

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


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to