Revision: 55690
http://sourceforge.net/p/brlcad/code/55690
Author: carlmoore
Date: 2013-06-07 15:25:30 +0000 (Fri, 07 Jun 2013)
Log Message:
-----------
cosmetic changes for d-u.c/u-d.c file comparison, and in u-d.c implement
'double scale=1.0;'
Modified Paths:
--------------
brlcad/trunk/src/sig/d-u.c
brlcad/trunk/src/sig/u-d.c
Modified: brlcad/trunk/src/sig/d-u.c
===================================================================
--- brlcad/trunk/src/sig/d-u.c 2013-06-07 14:57:58 UTC (rev 55689)
+++ brlcad/trunk/src/sig/d-u.c 2013-06-07 15:25:30 UTC (rev 55690)
@@ -30,7 +30,6 @@
#include "common.h"
-#include <stdio.h>
#include <stdlib.h> /* for atof() */
#include <string.h>
#include "bio.h"
Modified: brlcad/trunk/src/sig/u-d.c
===================================================================
--- brlcad/trunk/src/sig/u-d.c 2013-06-07 14:57:58 UTC (rev 55689)
+++ brlcad/trunk/src/sig/u-d.c 2013-06-07 15:25:30 UTC (rev 55690)
@@ -30,7 +30,6 @@
#include "common.h"
#include <stdlib.h> /* for atof() */
-#include <math.h>
#include <string.h>
#include "bio.h"
@@ -45,11 +44,9 @@
int main(int argc, char **argv)
{
int i, num;
- double scale;
+ double scale = 1.0;
size_t ret;
- scale = 1.0;
-
if (argc > 1) {
if (BU_STR_EQUAL(argv[1], "-n"))
scale = 1.0 / 65536.0;
@@ -70,6 +67,7 @@
for (i = 0; i < num; i++)
obuf[i] = (double)ibuf[i] * scale;
}
+
ret = fwrite(&obuf[0], sizeof(obuf[0]), num, stdout);
if (ret != (size_t)num)
perror("fwrite");
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